Automatic Differentiation
 
Loading...
Searching...
No Matches
determinant.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_DETERMINANT_HPP
2#define STAN_MATH_PRIM_FUN_DETERMINANT_HPP
3
7
8namespace stan {
9namespace math {
10
20template <typename T, require_eigen_vt<std::is_arithmetic, T>* = nullptr>
22 check_square("determinant", "m", m);
23 return make_holder(
24 [](auto&& m_) { return std::forward<decltype(m_)>(m_).determinant(); },
25 std::forward<T>(m));
26}
27
28} // namespace math
29} // namespace stan
30
31#endif
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
value_type_t< EigMat > determinant(const EigMat &m)
auto make_holder(F &&func, Args &&... args)
Calls given function with given arguments.
Definition holder.hpp:481
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...