latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
CorrCholeskyTransform
- class tensorplay.distributions.CorrCholeskyTransform(cache_size: int = 0)[source]
Transforms an unconstrained real vector with length into the Cholesky factor of a D-dimension correlation matrix. This Cholesky factor is a lower triangular matrix with positive diagonals and unit Euclidean norm for each row. The transform is processed as follows:
First we convert x into a lower triangular matrix in row order.
For each row of the lower triangular part, we apply a signed version of class
StickBreakingTransformto transform into a unit Euclidean length vector using the following steps: - Scales into the interval domain: . - Transforms into an unsigned domain: . - Applies . - Transforms back into signed domain: .
- property inv: Transform
Returns the inverse
Transformof this transform. This should satisfyt.inv.inv is t.
- property sign: int
Returns the sign of the determinant of the Jacobian, if applicable. In general this only makes sense for bijective transforms.
Help improve this page
Found an error, an unclear step, or a missing example?

