/** * 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())); }
/** * 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()); }