mat: clean up docs
MODIFY
mat/hogsvd.go
mat/hogsvd.go
@@ -106,8 +106,8 @@ func (gsvd *HOGSVD) Factorize(m ...Matrix) (ok bool) {
gsvd.err = errors.New("hogsvd: eigen decomposition failed")
return false
}
- vc := &CDense{}
- eig.VectorsTo(vc)
+ var vc CDense
+ eig.VectorsTo(&vc)
// vc is guaranteed to have real eigenvalues.
rc, cc := vc.Dims()
v := NewDense(rc, cc, nil)

MODIFY
mat/svd.go
mat/svd.go
@@ -40,7 +40,7 @@ const (
// SVDThin is a convenience value for computing both thin vectors.
SVDThin SVDKind = SVDThinU | SVDThinV
- // SVDThin is a convenience value for computing both full vectors.
+ // SVDFull is a convenience value for computing both full vectors.
SVDFull SVDKind = SVDFullU | SVDFullV
)

mat: clean up docs