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) JNoa.qrTensor(tensor.tensorHandle, Q, R)
return Pair(wrap(Q), wrap(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> { override fun Tensor<T>.lu(): Triple<TensorType, TensorType, TensorType> {
val P = JNoa.emptyTensor() val P = JNoa.emptyTensor()
val L = JNoa.emptyTensor() val L = JNoa.emptyTensor()