Prototypes | Header File(s) | |
template <class T> | ||
RWGenMat<T> |
transposeProduct(const RWGenMat<T>& A, const RWGenMat<T>& B) |
<rw/math/ genmat.h> |
Takes a matrix A (of M rows by N columns) and a matrix B (of M rows by P columns) as arguments, and returns a matrix C (of N rows by P columns) that is equal to ATB, that is, the inner product of the transpose of A with B:
If the number of rows in A does not match the number of rows in B, an exception with value MATX_MATMATPROD occurs.
Note that calling this function is equivalent to calling:
C = product( transpose(A), B);