determinant.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_DETERMINANT_HPP
#define STAN_MATH_PRIM_MAT_FUN_DETERMINANT_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/err/check_square.hpp>
namespace stan {
namespace math {
template <typename T, int R, int C>
inline T determinant(const Eigen::Matrix<T, R, C>& m) {
check_square("determinant", "m", m);
return m.determinant();
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::determinant
fvar< T > determinant(const Eigen::Matrix< fvar< T >, R, C > &m)
Definition: determinant.hpp:21
Eigen.hpp
stan::math::check_square
void check_square(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is square.
Definition: check_square.hpp:27
check_square.hpp

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