Evaluate multiple linear function for multiple values at the same time.
#include "MtxExpr.hpp" #include "Math387.hpp" #include "RegModels.hpp" #include "MtxVecTee.hpp" void __fastcall Example(); { sMatrix X; sVector YHat; X.SetIt(3,3,false,OPENARRAY(double,(2, -3, 5, 1, 6, -4, 8, 7, 9))); MulLinEval(OPENARRAY(double,(1,0.5,-2)),X,YHat,false); // no constant term! // YHat = (-9.5, 12, -6.5) }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|