mat: set caps when raw matrix is set
MODIFY
mat/symmetric.go
mat/symmetric.go
@@ -120,6 +120,7 @@ func (s *SymDense) SetRawSymmetric(mat blas64.Symmetric) {
if mat.Uplo != blas.Upper {
panic(badSymTriangle)
}
+ s.cap = mat.N
s.mat = mat
}

MODIFY
mat/triangular.go
mat/triangular.go
@@ -226,6 +226,7 @@ func (t *TriDense) SetRawTriangular(mat blas64.Triangular) {
if mat.Diag == blas.Unit {
panic("mat: cannot set TriDense with Unit storage format")
}
+ t.cap = mat.N
t.mat = mat
}

mat: set caps when raw matrix is set