mat: run gofmt -s -w
MODIFY
mat/band_test.go
mat/band_test.go
@@ -252,7 +252,7 @@ func TestBandDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*BandDense{
- &BandDense{
+ {
mat: blas64.Band{
Rows: 6,
Cols: 7,
@@ -269,7 +269,7 @@ func TestBandDenseZero(t *testing.T) {
},
},
},
- &BandDense{
+ {
mat: blas64.Band{
Rows: 6,
Cols: 7,

MODIFY
mat/dense_test.go
mat/dense_test.go
@@ -261,7 +261,7 @@ func TestDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*Dense{
- &Dense{
+ {
mat: blas64.General{
Rows: 4,
Cols: 3,

MODIFY
mat/diagonal_test.go
mat/diagonal_test.go
@@ -60,7 +60,7 @@ func TestDiagDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*DiagDense{
- &DiagDense{
+ {
mat: blas64.Vector{
N: 5,
Inc: 2,

MODIFY
mat/symband_test.go
mat/symband_test.go
@@ -200,7 +200,7 @@ func TestSymBandDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*SymBandDense{
- &SymBandDense{
+ {
mat: blas64.SymmetricBand{
Uplo: blas.Upper,
N: 6,

MODIFY
mat/symmetric_test.go
mat/symmetric_test.go
@@ -133,7 +133,7 @@ func TestSymDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*SymDense{
- &SymDense{
+ {
mat: blas64.Symmetric{
Uplo: blas.Upper,
N: 4,

MODIFY
mat/triangular_test.go
mat/triangular_test.go
@@ -143,7 +143,7 @@ func TestTriDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*TriDense{
- &TriDense{
+ {
mat: blas64.Triangular{
Uplo: blas.Upper,
N: 4,
@@ -156,7 +156,7 @@ func TestTriDenseZero(t *testing.T) {
},
},
},
- &TriDense{
+ {
mat: blas64.Triangular{
Uplo: blas.Lower,
N: 4,

MODIFY
mat/triband_test.go
mat/triband_test.go
@@ -337,7 +337,7 @@ func TestTriBandDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*TriBandDense{
- &TriBandDense{
+ {
mat: blas64.TriangularBand{
Uplo: blas.Upper,
N: 6,
@@ -353,7 +353,7 @@ func TestTriBandDenseZero(t *testing.T) {
},
},
},
- &TriBandDense{
+ {
mat: blas64.TriangularBand{
Uplo: blas.Lower,
N: 6,

MODIFY
mat/vector_test.go
mat/vector_test.go
@@ -185,7 +185,7 @@ func TestVecDenseZero(t *testing.T) {
// Elements that equal 1 should be set to zero, elements that equal -1
// should remain unchanged.
for _, test := range []*VecDense{
- &VecDense{
+ {
mat: blas64.Vector{
N: 5,
Inc: 2,

mat: run gofmt -s -w