Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
inverse.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__MATRIX__INVERSE_HPP
2 #define STAN__MATH__MATRIX__INVERSE_HPP
3 
6 
7 namespace stan {
8  namespace math {
9 
15  template <typename T>
16  inline
17  Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>
18  inverse(const Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic>& m) {
19  stan::math::check_square("inverse(%1%)",m,"m",(double*)0);
20  return m.inverse();
21  }
22 
23  }
24 }
25 #endif
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > inverse(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &m)
Returns the inverse of the specified matrix.
Definition: inverse.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.