Stan Math Library  2.20.0
reverse mode automatic differentiation
Namespaces | Functions
is_pos_definite.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/scal/err/is_positive.hpp>
#include <stan/math/prim/scal/err/is_not_nan.hpp>
#include <stan/math/prim/mat/err/is_symmetric.hpp>
#include <stan/math/prim/mat/err/constraint_tolerance.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/value_of_rec.hpp>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T_y >
bool stan::math::is_pos_definite (const Eigen::Matrix< T_y, -1, -1 > &y)
 Return true if the matrix is square or if the matrix has non-zero size, or if the matrix is symmetric, or if it is positive definite, or if no element is NaN. More...
 
template<typename Derived >
bool stan::math::is_pos_definite (const Eigen::LDLT< Derived > &cholesky)
 Return true if the matrix is positive definite. More...
 
template<typename Derived >
bool stan::math::is_pos_definite (const Eigen::LLT< Derived > &cholesky)
 Return true if diagonal of the L matrix is positive. More...
 

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