luFactor
fun DoubleTensorAlgebra.luFactor(structureND: StructureND<Double>, epsilon: Double = 1.0E-9): Pair<DoubleTensor, IntTensor>(source)
Computes the LU factorization of a matrix or batches of matrices input
. Returns a tuple containing the LU factorization and pivots of input
.
Return
pair of factorization
and pivots
. The factorization
has the shape `(*, m, n)`
, where`(*, m, n)`
is the shape of the input
tensor. The pivots
has the shape `(∗, min(m, n))`
. pivots
stores all the intermediate transpositions of rows.
Parameters
epsilon
permissible error when comparing the determinant of a matrix with zero default is 1e-9