1#ifndef STAN_MATH_REV_FUN_LDLT_FACTOR_HPP
2#define STAN_MATH_REV_FUN_LDLT_FACTOR_HPP
21 Eigen::LDLT<Eigen::MatrixXd>
ldlt_;
27 : matrix_(matrix), ldlt_(matrix.val().ldlt()) {}
32 const auto&
matrix() const noexcept {
return matrix_; }
37 const auto&
ldlt() const noexcept {
return ldlt_; }
48 Eigen::LDLT<Eigen::MatrixXd>
ldlt_;
54 : matrix_(matrix), ldlt_(matrix.val().ldlt()) {}
59 const auto&
matrix() const noexcept {
return matrix_; }
64 const auto&
ldlt() const noexcept {
return ldlt_; }
const auto & ldlt() const noexcept
Return a const reference to the LDLT factor of the matrix values.
LDLT_factor(const S &matrix)
arena_t< plain_type_t< T > > matrix_
const auto & matrix() const noexcept
Return a const reference to the underlying matrix.
Eigen::LDLT< Eigen::MatrixXd > ldlt_
const auto & ldlt() const noexcept
Return a const reference to the LDLT factor of the matrix values.
const auto & matrix() const noexcept
Return a const reference the underlying var_value
std::decay_t< T > matrix_
Eigen::LDLT< Eigen::MatrixXd > ldlt_
LDLT_factor(const S &matrix)
LDLT_factor is a structure that holds a matrix of type T and the LDLT of its values.
require_t< container_type_check_base< is_eigen_matrix_dynamic, value_type_t, TypeCheck, Check... > > require_eigen_matrix_dynamic_vt
Require type satisfies is_eigen_matrix_dynamic.
require_t< std::is_same< std::decay_t< T >, std::decay_t< S > > > require_same_t
Require types T and S satisfies std::is_same.
require_t< is_var_matrix< std::decay_t< T > > > require_var_matrix_t
Require type satisfies is_var_matrix.
typename plain_type< T >::type plain_type_t
typename internal::arena_type_impl< std::decay_t< T > >::type arena_t
Determines a type that can be used in place of T that does any dynamic allocations on the AD stack.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Defines a static member named value which is defined to be false as the primitive scalar types cannot...