Move EigenvectorsSym to VectorsTo
This is in line with the other factorization extraction methods.
Fixes
MODIFY
mat/symmetric.go
mat/symmetric.go
@@ -577,14 +577,13 @@ func (s *SymDense) PowPSD(a Symmetric, pow float64) error {
}
values[i] = math.Pow(v, pow)
}
- var u Dense
- u.EigenvectorsSym(&eigen)
+ u := eigen.VectorsTo(nil)
s.SymOuterK(values[0], u.ColView(0))
var v VecDense
for i := 1; i < dim; i++ {
- v.ColViewOf(&u, i)
+ v.ColViewOf(u, i)
s.SymRankOne(s, values[i], &v)
}
return nil

MODIFY
stat/mds/mds.go
stat/mds/mds.go
@@ -59,7 +59,7 @@ func TorgersonScaling(dst *mat.Dense, eigdst []float64, dis mat.Symmetric) (k in
if !ok {
return 0, dst, eigdst
}
- dst.EigenvectorsSym(&ed)
+ ed.VectorsTo(dst)
vals := ed.Values(nil)
reverse(vals, dst.RawMatrix())
copy(eigdst, vals)

Move EigenvectorsSym to VectorsTo (#918)

This is in line with the other factorization extraction methods.

Fixes #847.