mirror of
https://github.com/gonum/gonum.git
synced 2025-10-24 15:43:07 +08:00
mat: change factorization inputs to use bit types (#872)
* mat: change factorization inputs to use bit types Fixes #756 and #748.
This commit is contained in:
@@ -63,13 +63,13 @@ func TestEigen(t *testing.T) {
|
||||
},
|
||||
} {
|
||||
var e1, e2, e3, e4 Eigen
|
||||
ok := e1.Factorize(test.a, true, true)
|
||||
ok := e1.Factorize(test.a, EigenBoth)
|
||||
if !ok {
|
||||
panic("bad factorization")
|
||||
}
|
||||
e2.Factorize(test.a, false, true)
|
||||
e3.Factorize(test.a, true, false)
|
||||
e4.Factorize(test.a, false, false)
|
||||
e2.Factorize(test.a, EigenRight)
|
||||
e3.Factorize(test.a, EigenLeft)
|
||||
e4.Factorize(test.a, EigenNone)
|
||||
|
||||
v1 := e1.Values(nil)
|
||||
if !cmplxEqualTol(v1, test.values, 1e-14) {
|
||||
|
||||
Reference in New Issue
Block a user