Matrix multiplication

says

General matrix multiplication. Create a matrix C such that C = A * B.

What is this mysterious matrix C? In other words how can I get a result of matrix multiplication?

TMatrixD C;
C.Mult(A*B); ?

Why isn’t there a * operator defined for TMatrix (TMatrixD C = A*B)?

Just as you wrote,

TMatrixD C;
C.Mult(A,B);

There is an operator*=() defined; I suspect the lack of operator*() is to avoid creating large, expensive temporaries.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.