Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
log_determinant.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__MATRIX__LOG_DETERMINANT_HPP__
2 #define __STAN__MATH__MATRIX__LOG_DETERMINANT_HPP__
3 
6 
7 namespace stan {
8  namespace math {
9 
17  template <typename T,int R, int C>
18  inline T log_determinant(const Eigen::Matrix<T,R,C>& m) {
19  stan::math::validate_square(m,"log_determinant");
20  return m.colPivHouseholderQr().logAbsDeterminant();
21  }
22 
23  }
24 }
25 #endif

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