Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ cholesky_corr_constrain() [3/6]

template<typename T , require_std_vector_t< T > * = nullptr>
auto stan::math::cholesky_corr_constrain ( const T &  y,
int  K 
)
inline

Return The cholesky of a KxK correlation matrix.

This overload handles looping over the elements of a standard vector.

Template Parameters
TA standard vector with inner type inheriting from Eigen::DenseBase or a var_value with inner type inheriting from Eigen::DenseBase with compile time dynamic rows and 1 column
Parameters
yLinearly Serialized vector of size (K * (K - 1))/2 holding the column major order elements of the lower triangurlar
KThe size of the matrix to return

Definition at line 90 of file cholesky_corr_constrain.hpp.