Inv and det #262

Merged
AndreiKingsley merged 5 commits from andrew into feature/tensor-algebra 2021-03-24 18:52:12 +03:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit fea53af0ee - Show all commits

View File

@ -14,7 +14,7 @@ public interface LinearOpsTensorAlgebra<T, TensorType : TensorStructure<T>, Inde
public fun TensorType.qr(): TensorType public fun TensorType.qr(): TensorType
//https://pytorch.org/docs/stable/generated/torch.lu.html //https://pytorch.org/docs/stable/generated/torch.lu.html
public fun TensorType.lu(tol: T): Pair<TensorType, IndexTensorType> public fun TensorType.lu(): Pair<TensorType, IndexTensorType>
//https://pytorch.org/docs/stable/generated/torch.lu_unpack.html //https://pytorch.org/docs/stable/generated/torch.lu_unpack.html
public fun luPivot(luTensor: TensorType, pivotsTensor: IndexTensorType): Triple<TensorType, TensorType, TensorType> public fun luPivot(luTensor: TensorType, pivotsTensor: IndexTensorType): Triple<TensorType, TensorType, TensorType>

View File

@ -11,7 +11,7 @@ public class DoubleLinearOpsTensorAlgebra :
TODO("Not yet implemented") TODO("Not yet implemented")
} }
override fun DoubleTensor.lu(tol: Double): Pair<DoubleTensor, IntTensor> { override fun DoubleTensor.lu(): Pair<DoubleTensor, IntTensor> {
checkSquareMatrix(shape) checkSquareMatrix(shape)
@ -138,7 +138,6 @@ public class DoubleLinearOpsTensorAlgebra :
TODO("Not yet implemented") TODO("Not yet implemented")
} }
override fun DoubleTensor.svd(): Triple<DoubleTensor, DoubleTensor, DoubleTensor> { override fun DoubleTensor.svd(): Triple<DoubleTensor, DoubleTensor, DoubleTensor> {
TODO("Not yet implemented") TODO("Not yet implemented")
} }