LU decomp doc in NOA

This commit is contained in:
Roland Grinis 2021-07-10 22:21:20 +01:00
parent 2a29e66daa
commit 06bc8fecf6
2 changed files with 4 additions and 2 deletions

View File

@ -252,7 +252,9 @@ protected constructor(scope: NoaScope) :
JNoa.qrTensor(tensor.tensorHandle, Q, R)
return Pair(wrap(Q), wrap(R))
}
/**
* this implementation satisfies `tensor = P dot L dot U`
*/
override fun Tensor<T>.lu(): Triple<TensorType, TensorType, TensorType> {
val P = JNoa.emptyTensor()
val L = JNoa.emptyTensor()

View File

@ -63,7 +63,7 @@ public interface LinearOpsTensorAlgebra<T> : TensorPartialDivisionAlgebra<T> {
*
* Computes the LUP decomposition of a matrix or a batch of matrices.
* Given a tensor `input`, return tensors (P, L, U) satisfying :
* `P dot input = L dot U` or `input = P dot L dot U`
* `P dot input = L dot U` or `input = P dot L dot U`
* depending on the implementation, with :
* `P` being a permutation matrix or batch of matrices,
* `L` being a lower triangular matrix or batch of matrices,