fun <T : Number> pinv(a: KtNDArray<T>, rcond: Double = 1e-15, hermitian: Boolean = false): KtNDArray<Double>
(source)
Compute the (Moore-Penrose) pseudo-inverse of a matrix.
a
- matrix or stack of matrices to be pseudo-inverted.
rcond
- cut-off for small singular values.
hermitian
- if True, a is assumed to be Hermitian (symmetric if real-valued),
enabling a more efficient method for finding singular values. Defaults to False.
Return
the pseudo-inverse of a. If a is matrix instance, the so is B.