torch.linalg.ldl_factor
torch.linalg.ldl_factor(A, *, hermitian=False, out=None)
Computes a compact representation of the LDL factorization of a
   Hermitian or symmetric (possibly indefinite) matrix.
When "A" is complex valued it can be Hermitian ("hermitian"=
   True) or symmetric ("hermitian"= False).
The factorization is of the form the form A = L D L^T. If
   "hermitian" is True then transpose operation is the conjugate
   transpose.
L (or U) and D are stored in compact form in "LD". They follow the
   format specified by LAPACK's sytrf function. These tensors may be
   used in "torch.linalg.ldl_solve()" to solve linear systems.
Supports input of float, double, cfloat and cdouble dtypes. Also
   supports batches of matrices, and if "A" is a batch of matrices
   then the output has the same batch dimensions.
Note:
 When inputs are on a CUDA device, this function synchronizes that
