fixed svd for wide matrices by operating on transposed copy

This commit is contained in:
dane
2014-01-13 17:57:45 +01:00
parent b0e0bdf3de
commit f9544b6951
2 changed files with 13 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ func (s *S) TestSVD(c *check.C) {
small: math.Pow(2, -966.0),
// FIXME(kortschak) sigma is one element longer than it should be.
sigma: []float64{21.25950088109745, 1.5415021616856577, 1.2873979074613637, 0},
sigma: []float64{21.259500881097434, 1.5415021616856566, 1.2873979074613628},
},
} {
svd := SVD(DenseCopyOf(t.a), t.epsilon, t.small, t.wantu, t.wantv)