Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
crossprod.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__REV__MATRIX__CROSSPROD_HPP
2 #define STAN__AGRAD__REV__MATRIX__CROSSPROD_HPP
3 
6 
7 namespace stan {
8  namespace agrad {
9 
16  inline matrix_v
17  crossprod(const matrix_v& M) {
18  return tcrossprod(M.transpose());
19  }
20 
21  }
22 }
23 #endif
Eigen::Matrix< var, Eigen::Dynamic, Eigen::Dynamic > matrix_v
The type of a matrix holding stan::agrad::var values.
Definition: typedefs.hpp:21
Eigen::Matrix< fvar< T >, C, C > crossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: crossprod.hpp:17
Eigen::Matrix< fvar< T >, R, R > tcrossprod(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: tcrossprod.hpp:17

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