Beispiel #1
0
/**
 * Returns the result of pre-multiplying a matrix by its
 * own transpose.
 * @param M Matrix to multiply.
 * @return Transpose of M times M
 */
inline matrix_v
crossprod(const matrix_v& M) {
    return tcrossprod(static_cast<matrix_v>(M.transpose()));
}
Beispiel #2
0
 /**
  * Returns the result of pre-multiplying a matrix by its
  * own transpose.
  * @param M Matrix to multiply.
  * @return Transpose of M times M
  */
 inline matrix_v
 crossprod(const matrix_v& M) {
   return tcrossprod(M.transpose());
 }