torch.linalg.lu_unpack
function lu_unpack(LU: Tensor, pivots: Tensor, options?: LuUnpackOptions): { P: Tensor; L: Tensor; U: Tensor }function lu_unpack(LU: Tensor, pivots: Tensor, unpack_data: boolean, unpack_pivots: boolean, options?: LuUnpackOptions): { P: Tensor; L: Tensor; U: Tensor }Unpacks LU factorization into separate P, L, U matrices.
Parameters
LUTensor- Packed LU matrix from lu_factor
pivotsTensor- Pivot indices from lu_factor
optionsLuUnpackOptionsoptional