Automatic Differentiation
 
Loading...
Searching...
No Matches
cholesky_corr_constrain.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<CorrOrder Order, typename T , require_var_vector_t< T > * = nullptr>
var_value< Eigen::MatrixXd > stan::math::internal::cholesky_corr_factor (T &&y, Eigen::Index K)
 Return the Cholesky factor of a correlation matrix from unconstrained values y, whose partial correlations are tanh(y), as the prim version does.
 
template<typename T , require_var_vector_t< T > * = nullptr>
var_value< Eigen::MatrixXd > stan::math::cholesky_corr_constrain (T &&y, int K)
 Return the Cholesky factor of the correlation matrix of the specified size read from the unconstrained vector y.
 
template<typename T , require_var_vector_t< T > * = nullptr>
var_value< Eigen::MatrixXd > stan::math::cholesky_corr_constrain (T &&y, int K, scalar_type_t< T > &lp)
 Return the Cholesky factor of the correlation matrix of the specified size read from the unconstrained vector y.