torch.linalg.lu_factor_ex
function lu_factor_ex<S extends Shape, D extends DType, Dev extends DeviceType>(A: Tensor<S, D, Dev>, options?: LuFactorExOptions): {
LU: Tensor<S, D, Dev>;
pivots: Tensor<DynamicShape, 'int32', Dev>;
info: Tensor<DynamicShape, 'int32', Dev>;
}function lu_factor_ex<S extends Shape, D extends DType, Dev extends DeviceType>(A: Tensor<S, D, Dev>, pivot: boolean, check_errors: boolean, options?: LuFactorExOptions): {
LU: Tensor<S, D, Dev>;
pivots: Tensor<DynamicShape, 'int32', Dev>;
info: Tensor<DynamicShape, 'int32', Dev>;
}Computes the LU factorization, with error info.
Parameters
ATensor<S, D, Dev>optionsLuFactorExOptionsoptional
Returns
{ LU: Tensor<S, D, Dev>; pivots: Tensor<DynamicShape, 'int32', Dev>; info: Tensor<DynamicShape, 'int32', Dev>; }