torch.lu
torch.lu(args, *kwargs)
Computes the LU factorization of a matrix or batches of matrices
   "A". Returns a tuple containing the LU factorization and pivots of
   "A".  Pivoting is done if "pivot" is set to "True".
Warning:
 "torch.lu()" is deprecated in favor of "torch.linalg.lu_factor()"
 and "torch.linalg.lu_factor_ex()". "torch.lu()" will be removed
 in a future PyTorch release. "LU, pivots, info = torch.lu(A,
 compute_pivots)" should be replaced with

    LU, pivots = torch.linalg.lu_factor(A, compute_pivots)

 "LU, pivots, info = torch.lu(A, compute_pivots, get_infos=True)"
 should be replaced with

    LU, pivots, info = torch.linalg.lu_factor_ex(A, compute_pivots)

Note:
 * The returned permutation matrix for every matrix in the batch
   is represented by a 1-indexed vector of size "min(A.shape[-2],
   A.shape[-1])". "pivots[i] == j" represents that in the "i"-th
