warp.tile_cholesky_inplace#
- warp.tile_cholesky_inplace( ) None#
Compute the Cholesky factorization of a symmetric positive-definite matrix
Ain place.With
fill_mode="lower"the lower triangle ofAis replaced by the factorLsuch thatL @ L^T = Aand the upper triangle is set to zero; withfill_mode="upper"the upper triangle is replaced byUsuch thatU^T @ U = Aand the lower triangle is set to zero. Only the triangle selected byfill_modeis read.fill_modemust be a compile-time constant.Supported dtypes, the positive-definiteness requirement, and backend selection match
tile_cholesky(); see it for details and a usage example.This is a cooperative operation, so every thread in the block must call it.
This in-place variant avoids the input copy and uses half the shared memory of
tile_cholesky(), but is not differentiable.- Parameters:
A – A square, symmetric positive-definite tile with
shape=(N, N), overwritten by the factor.fill_mode –
"lower"or"upper". Must be a compile-time constant.