Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
determinant.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__MATRIX__DETERMINANT_HPP
2 #define STAN__MATH__MATRIX__DETERMINANT_HPP
3 
6 
7 namespace stan {
8  namespace math {
9 
17  template <typename T,int R, int C>
18  inline T determinant(const Eigen::Matrix<T,R,C>& m) {
19  stan::math::check_square("determinant(%1%)",m,"m",(double*)0);
20  return m.determinant();
21  }
22 
23  }
24 }
25 #endif
T determinant(const Eigen::Matrix< T, R, C > &m)
Returns the determinant of the specified square matrix.
Definition: determinant.hpp:18
bool check_square(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true if the specified matrix is square.

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