Return the covariance matrix of the specified dimensionality derived from constraining the specified vector of unconstrained values.
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
- Template Parameters
-
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A type inheriting from Eigen::DenseBase or a var_value with inner type inheriting from Eigen::DenseBase with compile time rows or columns equal to 1 |
- Parameters
-
| x | Input vector of unconstrained partial correlations and standard deviations |
| k | Dimensionality of returned covariance matrix |
[in,out] | lp | log density accumulator |
- Returns
- Covariance matrix derived from the unconstrained partial correlations and deviations.
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
- Template Parameters
-
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A standard vector with inner type inheriting from Eigen::DenseBase or a var_value with inner type inheriting from Eigen::DenseBase with compile time rows or columns equal to 1 |
- Parameters
-
| x | Input vector of unconstrained partial correlations and standard deviations |
| k | Dimensionality of returned covariance matrix |
[in,out] | lp | log density accumulator |
- Returns
- Covariance matrix derived from the unconstrained partial correlations and deviations.
Definition at line 87 of file cov_matrix_constrain_lkj.hpp.