Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ cholesky_factor_constrain() [4/5]

template<typename T , require_var_vector_t< T > * = nullptr>
var_value< Eigen::MatrixXd > stan::math::cholesky_factor_constrain ( const T &  x,
int  M,
int  N 
)

Return the Cholesky factor of the specified size read from the specified vector.

A total of (N choose 2) + N + (M - N) * N elements are required to read an M by N Cholesky factor.

Template Parameters
Ttype of input vector (must be a var_value<S> where S inherits from EigenBase)
Parameters
xVector of unconstrained values
Mnumber of rows
Nnumber of columns
Returns
Cholesky factor

Definition at line 30 of file cholesky_factor_constrain.hpp.