Strictly speaking, ALGLIB works with arrays, 1-dimensional or 2-dimensional - not vectors (or matrices). It means that ALGLIB has no overloaded operators to performs calculations like "a:=b+3*c" with vectors or matrices. It concentrates on higher-lever operations, like matrix decompositions.
If you want, you may use RMatrixGEMM to calculate product of two matrices - Mx1 and 1xN, but this function is optimized for large operands. It is not optimized to calculate such "thin", low-rank products, so its performance may be several times lower than that of two nested loops without any optimizations at all.
|