Does not inherit
Prototypes | Header File(s) | |
template <class T> | ||
RWGenMat<T> | product(const RWGenMat<T> A, | <rw/math/genmat.h> |
RWMathVec<T> | product(const RWGenMat<T> A, | <rw/math/genmat.h> |
Returns the inner product of its two arguments. The version that takes two matrices A and B returns:
The function checks to make sure that the number of columns in A equals the number of rows in B. Otherwise, an exception with value MATX_MATMATPROD occurs.
The version that takes a matrix A and a vector v as arguments returns:
The function checks to make sure that the number of columns in A equals the number of elements in v. Otherwise, an exception with value MATX_MATVECPROD occurs.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.