Stan Math Library  2.20.0
reverse mode automatic differentiation
crossprod.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_CROSSPROD_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_CROSSPROD_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
16 inline matrix_d crossprod(const matrix_d& M) {
17  return tcrossprod(static_cast<matrix_d>(M.transpose()));
18 }
19 
20 } // namespace math
21 } // namespace stan
22 #endif
Eigen::Matrix< fvar< T >, R, R > tcrossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: tcrossprod.hpp:12
Eigen::Matrix< fvar< T >, C, C > crossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: crossprod.hpp:12
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > matrix_d
Type for matrix of double values.
Definition: typedefs.hpp:19

     [ Stan Home Page ] © 2011–2018, Stan Development Team.