Stan Math Library  2.20.0
reverse mode automatic differentiation
crossprod.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_MAT_FUN_CROSSPROD_HPP
2 #define STAN_MATH_REV_MAT_FUN_CROSSPROD_HPP
3 
4 #include <stan/math/rev/meta.hpp>
7 
8 namespace stan {
9 namespace math {
10 
17 inline matrix_v crossprod(const matrix_v& M) {
18  return tcrossprod(static_cast<matrix_v>(M.transpose()));
19 }
20 
21 } // namespace math
22 } // namespace stan
23 #endif
Eigen::Matrix< fvar< T >, R, R > tcrossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: tcrossprod.hpp:12
Eigen::Matrix< var, Eigen::Dynamic, Eigen::Dynamic > matrix_v
The type of a matrix holding var values.
Definition: typedefs.hpp:17
Eigen::Matrix< fvar< T >, C, C > crossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: crossprod.hpp:12

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