forked from kscience/kmath
test to fix determinant
This commit is contained in:
parent
1e8da7a87b
commit
b51427d2ab
@ -34,6 +34,19 @@ class TestDoubleLinearOpsTensorAlgebra {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testDet() = DoubleLinearOpsTensorAlgebra {
|
||||||
|
val m = fromArray(
|
||||||
|
intArrayOf(3, 3), doubleArrayOf(
|
||||||
|
2.1843, 1.4391, -0.4845,
|
||||||
|
1.4391, 1.7772, 0.4055,
|
||||||
|
-0.4845, 0.4055, 0.7519
|
||||||
|
)
|
||||||
|
)
|
||||||
|
println(m.det().value())
|
||||||
|
println(0.0197) //expected value
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testInvLU() = DoubleLinearOpsTensorAlgebra {
|
fun testInvLU() = DoubleLinearOpsTensorAlgebra {
|
||||||
val tensor = fromArray(
|
val tensor = fromArray(
|
||||||
|
Loading…
Reference in New Issue
Block a user