mat: don't prevent reuse of allocated backing data
MODIFY
mat/band.go
mat/band.go
@@ -215,7 +215,7 @@ func (b *BandDense) Reset() {
b.mat.KL = 0
b.mat.KU = 0
b.mat.Stride = 0
- b.mat.Data = b.mat.Data[:0:0]
+ b.mat.Data = b.mat.Data[:0]
}
// DiagView returns the diagonal as a matrix backed by the original data.

MODIFY
mat/symband.go
mat/symband.go
@@ -176,7 +176,7 @@ func (s *SymBandDense) Reset() {
s.mat.K = 0
s.mat.Stride = 0
s.mat.Uplo = 0
- s.mat.Data = s.mat.Data[:0:0]
+ s.mat.Data = s.mat.Data[:0]
}
// Zero sets all of the matrix elements to zero.

mat: don't prevent reuse of allocated backing data