blas: rename test check function equal*=>same*
MODIFY
blas/blas32/conv_symmetric_test.go
blas/blas32/conv_symmetric_test.go
@@ -65,7 +65,7 @@ type symmetric interface {
uplo() blas.Uplo
}
-func equalSymmetric(a, b symmetric) bool {
+func sameSymmetric(a, b symmetric) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -102,12 +102,12 @@ func TestConvertSymmetric(t *testing.T) {
for _, uplo := range []blas.Uplo{blas.Upper, blas.Lower} {
test.Uplo = uplo
colmajor := newSymmetricColsFrom(test)
- if !equalSymmetric(colmajor, test) {
+ if !sameSymmetric(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricFrom(colmajor)
- if !equalSymmetric(rowmajor, test) {
+ if !sameSymmetric(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -203,7 +203,7 @@ type symmetricBand interface {
uplo() blas.Uplo
}
-func equalSymmetricBand(a, b symmetricBand) bool {
+func sameSymmetricBand(a, b symmetricBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -294,12 +294,12 @@ var symmetricBandTests = []SymmetricBand{
func TestConvertSymBand(t *testing.T) {
for _, test := range symmetricBandTests {
colmajor := newSymmetricBandColsFrom(test)
- if !equalSymmetricBand(colmajor, test) {
+ if !sameSymmetricBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricBandFrom(colmajor)
- if !equalSymmetricBand(rowmajor, test) {
+ if !sameSymmetricBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/blas32/conv_test.go
blas/blas32/conv_test.go
@@ -46,7 +46,7 @@ type general interface {
at(i, j int) float32
}
-func equalGeneral(a, b general) bool {
+func sameGeneral(a, b general) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -96,12 +96,12 @@ var generalTests = []General{
func TestConvertGeneral(t *testing.T) {
for _, test := range generalTests {
colmajor := newGeneralColsFrom(test)
- if !equalGeneral(colmajor, test) {
+ if !sameGeneral(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newGeneralFrom(colmajor)
- if !equalGeneral(rowmajor, test) {
+ if !sameGeneral(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -171,7 +171,7 @@ type triangular interface {
diag() blas.Diag
}
-func equalTriangular(a, b triangular) bool {
+func sameTriangular(a, b triangular) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -207,12 +207,12 @@ func TestConvertTriangular(t *testing.T) {
test.Uplo = uplo
test.Diag = diag
colmajor := newTriangularColsFrom(test)
- if !equalTriangular(colmajor, test) {
+ if !sameTriangular(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularFrom(colmajor)
- if !equalTriangular(rowmajor, test) {
+ if !sameTriangular(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -279,7 +279,7 @@ type band interface {
bandwidth() (kl, ku int)
}
-func equalBand(a, b band) bool {
+func sameBand(a, b band) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -401,12 +401,12 @@ var bandTests = []Band{
func TestConvertBand(t *testing.T) {
for _, test := range bandTests {
colmajor := newBandColsFrom(test)
- if !equalBand(colmajor, test) {
+ if !sameBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newBandFrom(colmajor)
- if !equalBand(rowmajor, test) {
+ if !sameBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -513,7 +513,7 @@ type triangularBand interface {
diag() blas.Diag
}
-func equalTriangularBand(a, b triangularBand) bool {
+func sameTriangularBand(a, b triangularBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -607,12 +607,12 @@ var triangularBandTests = []TriangularBand{
func TestConvertTriBand(t *testing.T) {
for _, test := range triangularBandTests {
colmajor := newTriangularBandColsFrom(test)
- if !equalTriangularBand(colmajor, test) {
+ if !sameTriangularBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularBandFrom(colmajor)
- if !equalTriangularBand(rowmajor, test) {
+ if !sameTriangularBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/blas64/conv_symmetric_test.go
blas/blas64/conv_symmetric_test.go
@@ -63,7 +63,7 @@ type symmetric interface {
uplo() blas.Uplo
}
-func equalSymmetric(a, b symmetric) bool {
+func sameSymmetric(a, b symmetric) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -100,12 +100,12 @@ func TestConvertSymmetric(t *testing.T) {
for _, uplo := range []blas.Uplo{blas.Upper, blas.Lower} {
test.Uplo = uplo
colmajor := newSymmetricColsFrom(test)
- if !equalSymmetric(colmajor, test) {
+ if !sameSymmetric(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricFrom(colmajor)
- if !equalSymmetric(rowmajor, test) {
+ if !sameSymmetric(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -201,7 +201,7 @@ type symmetricBand interface {
uplo() blas.Uplo
}
-func equalSymmetricBand(a, b symmetricBand) bool {
+func sameSymmetricBand(a, b symmetricBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -292,12 +292,12 @@ var symmetricBandTests = []SymmetricBand{
func TestConvertSymBand(t *testing.T) {
for _, test := range symmetricBandTests {
colmajor := newSymmetricBandColsFrom(test)
- if !equalSymmetricBand(colmajor, test) {
+ if !sameSymmetricBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricBandFrom(colmajor)
- if !equalSymmetricBand(rowmajor, test) {
+ if !sameSymmetricBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/blas64/conv_test.go
blas/blas64/conv_test.go
@@ -44,7 +44,7 @@ type general interface {
at(i, j int) float64
}
-func equalGeneral(a, b general) bool {
+func sameGeneral(a, b general) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -94,12 +94,12 @@ var generalTests = []General{
func TestConvertGeneral(t *testing.T) {
for _, test := range generalTests {
colmajor := newGeneralColsFrom(test)
- if !equalGeneral(colmajor, test) {
+ if !sameGeneral(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newGeneralFrom(colmajor)
- if !equalGeneral(rowmajor, test) {
+ if !sameGeneral(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -169,7 +169,7 @@ type triangular interface {
diag() blas.Diag
}
-func equalTriangular(a, b triangular) bool {
+func sameTriangular(a, b triangular) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -205,12 +205,12 @@ func TestConvertTriangular(t *testing.T) {
test.Uplo = uplo
test.Diag = diag
colmajor := newTriangularColsFrom(test)
- if !equalTriangular(colmajor, test) {
+ if !sameTriangular(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularFrom(colmajor)
- if !equalTriangular(rowmajor, test) {
+ if !sameTriangular(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -277,7 +277,7 @@ type band interface {
bandwidth() (kl, ku int)
}
-func equalBand(a, b band) bool {
+func sameBand(a, b band) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -399,12 +399,12 @@ var bandTests = []Band{
func TestConvertBand(t *testing.T) {
for _, test := range bandTests {
colmajor := newBandColsFrom(test)
- if !equalBand(colmajor, test) {
+ if !sameBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newBandFrom(colmajor)
- if !equalBand(rowmajor, test) {
+ if !sameBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -511,7 +511,7 @@ type triangularBand interface {
diag() blas.Diag
}
-func equalTriangularBand(a, b triangularBand) bool {
+func sameTriangularBand(a, b triangularBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -605,12 +605,12 @@ var triangularBandTests = []TriangularBand{
func TestConvertTriBand(t *testing.T) {
for _, test := range triangularBandTests {
colmajor := newTriangularBandColsFrom(test)
- if !equalTriangularBand(colmajor, test) {
+ if !sameTriangularBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularBandFrom(colmajor)
- if !equalTriangularBand(rowmajor, test) {
+ if !sameTriangularBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/cblas128/conv_hermitian_test.go
blas/cblas128/conv_hermitian_test.go
@@ -65,7 +65,7 @@ type hermitian interface {
uplo() blas.Uplo
}
-func equalHermitian(a, b hermitian) bool {
+func sameHermitian(a, b hermitian) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -102,12 +102,12 @@ func TestConvertHermitian(t *testing.T) {
for _, uplo := range []blas.Uplo{blas.Upper, blas.Lower} {
test.Uplo = uplo
colmajor := newHermitianColsFrom(test)
- if !equalHermitian(colmajor, test) {
+ if !sameHermitian(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newHermitianFrom(colmajor)
- if !equalHermitian(rowmajor, test) {
+ if !sameHermitian(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -203,7 +203,7 @@ type hermitianBand interface {
uplo() blas.Uplo
}
-func equalHermitianBand(a, b hermitianBand) bool {
+func sameHermitianBand(a, b hermitianBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -294,12 +294,12 @@ var hermitianBandTests = []HermitianBand{
func TestConvertHermBand(t *testing.T) {
for _, test := range hermitianBandTests {
colmajor := newHermitianBandColsFrom(test)
- if !equalHermitianBand(colmajor, test) {
+ if !sameHermitianBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newHermitianBandFrom(colmajor)
- if !equalHermitianBand(rowmajor, test) {
+ if !sameHermitianBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/cblas128/conv_symmetric_test.go
blas/cblas128/conv_symmetric_test.go
@@ -65,7 +65,7 @@ type symmetric interface {
uplo() blas.Uplo
}
-func equalSymmetric(a, b symmetric) bool {
+func sameSymmetric(a, b symmetric) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -102,12 +102,12 @@ func TestConvertSymmetric(t *testing.T) {
for _, uplo := range []blas.Uplo{blas.Upper, blas.Lower} {
test.Uplo = uplo
colmajor := newSymmetricColsFrom(test)
- if !equalSymmetric(colmajor, test) {
+ if !sameSymmetric(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricFrom(colmajor)
- if !equalSymmetric(rowmajor, test) {
+ if !sameSymmetric(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -203,7 +203,7 @@ type symmetricBand interface {
uplo() blas.Uplo
}
-func equalSymmetricBand(a, b symmetricBand) bool {
+func sameSymmetricBand(a, b symmetricBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -294,12 +294,12 @@ var symmetricBandTests = []SymmetricBand{
func TestConvertSymBand(t *testing.T) {
for _, test := range symmetricBandTests {
colmajor := newSymmetricBandColsFrom(test)
- if !equalSymmetricBand(colmajor, test) {
+ if !sameSymmetricBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newSymmetricBandFrom(colmajor)
- if !equalSymmetricBand(rowmajor, test) {
+ if !sameSymmetricBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/cblas128/conv_test.go
blas/cblas128/conv_test.go
@@ -46,7 +46,7 @@ type general interface {
at(i, j int) complex128
}
-func equalGeneral(a, b general) bool {
+func sameGeneral(a, b general) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -96,12 +96,12 @@ var generalTests = []General{
func TestConvertGeneral(t *testing.T) {
for _, test := range generalTests {
colmajor := newGeneralColsFrom(test)
- if !equalGeneral(colmajor, test) {
+ if !sameGeneral(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newGeneralFrom(colmajor)
- if !equalGeneral(rowmajor, test) {
+ if !sameGeneral(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -171,7 +171,7 @@ type triangular interface {
diag() blas.Diag
}
-func equalTriangular(a, b triangular) bool {
+func sameTriangular(a, b triangular) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -207,12 +207,12 @@ func TestConvertTriangular(t *testing.T) {
test.Uplo = uplo
test.Diag = diag
colmajor := newTriangularColsFrom(test)
- if !equalTriangular(colmajor, test) {
+ if !sameTriangular(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularFrom(colmajor)
- if !equalTriangular(rowmajor, test) {
+ if !sameTriangular(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -279,7 +279,7 @@ type band interface {
bandwidth() (kl, ku int)
}
-func equalBand(a, b band) bool {
+func sameBand(a, b band) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -401,12 +401,12 @@ var bandTests = []Band{
func TestConvertBand(t *testing.T) {
for _, test := range bandTests {
colmajor := newBandColsFrom(test)
- if !equalBand(colmajor, test) {
+ if !sameBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newBandFrom(colmajor)
- if !equalBand(rowmajor, test) {
+ if !sameBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -513,7 +513,7 @@ type triangularBand interface {
diag() blas.Diag
}
-func equalTriangularBand(a, b triangularBand) bool {
+func sameTriangularBand(a, b triangularBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -607,12 +607,12 @@ var triangularBandTests = []TriangularBand{
func TestConvertTriBand(t *testing.T) {
for _, test := range triangularBandTests {
colmajor := newTriangularBandColsFrom(test)
- if !equalTriangularBand(colmajor, test) {
+ if !sameTriangularBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularBandFrom(colmajor)
- if !equalTriangularBand(rowmajor, test) {
+ if !sameTriangularBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/cblas64/conv_hermitian_test.go
blas/cblas64/conv_hermitian_test.go
@@ -65,7 +65,7 @@ type hermitian interface {
uplo() blas.Uplo
}
-func equalHermitian(a, b hermitian) bool {
+func sameHermitian(a, b hermitian) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -102,12 +102,12 @@ func TestConvertHermitian(t *testing.T) {
for _, uplo := range []blas.Uplo{blas.Upper, blas.Lower} {
test.Uplo = uplo
colmajor := newHermitianColsFrom(test)
- if !equalHermitian(colmajor, test) {
+ if !sameHermitian(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newHermitianFrom(colmajor)
- if !equalHermitian(rowmajor, test) {
+ if !sameHermitian(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -203,7 +203,7 @@ type hermitianBand interface {
uplo() blas.Uplo
}
-func equalHermitianBand(a, b hermitianBand) bool {
+func sameHermitianBand(a, b hermitianBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -294,12 +294,12 @@ var hermitianBandTests = []HermitianBand{
func TestConvertHermBand(t *testing.T) {
for _, test := range hermitianBandTests {
colmajor := newHermitianBandColsFrom(test)
- if !equalHermitianBand(colmajor, test) {
+ if !sameHermitianBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newHermitianBandFrom(colmajor)
- if !equalHermitianBand(rowmajor, test) {
+ if !sameHermitianBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

MODIFY
blas/cblas64/conv_test.go
blas/cblas64/conv_test.go
@@ -46,7 +46,7 @@ type general interface {
at(i, j int) complex64
}
-func equalGeneral(a, b general) bool {
+func sameGeneral(a, b general) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -96,12 +96,12 @@ var generalTests = []General{
func TestConvertGeneral(t *testing.T) {
for _, test := range generalTests {
colmajor := newGeneralColsFrom(test)
- if !equalGeneral(colmajor, test) {
+ if !sameGeneral(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newGeneralFrom(colmajor)
- if !equalGeneral(rowmajor, test) {
+ if !sameGeneral(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -171,7 +171,7 @@ type triangular interface {
diag() blas.Diag
}
-func equalTriangular(a, b triangular) bool {
+func sameTriangular(a, b triangular) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -207,12 +207,12 @@ func TestConvertTriangular(t *testing.T) {
test.Uplo = uplo
test.Diag = diag
colmajor := newTriangularColsFrom(test)
- if !equalTriangular(colmajor, test) {
+ if !sameTriangular(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularFrom(colmajor)
- if !equalTriangular(rowmajor, test) {
+ if !sameTriangular(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -279,7 +279,7 @@ type band interface {
bandwidth() (kl, ku int)
}
-func equalBand(a, b band) bool {
+func sameBand(a, b band) bool {
ar, ac := a.dims()
br, bc := b.dims()
if ar != br || ac != bc {
@@ -401,12 +401,12 @@ var bandTests = []Band{
func TestConvertBand(t *testing.T) {
for _, test := range bandTests {
colmajor := newBandColsFrom(test)
- if !equalBand(colmajor, test) {
+ if !sameBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newBandFrom(colmajor)
- if !equalBand(rowmajor, test) {
+ if !sameBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}
@@ -513,7 +513,7 @@ type triangularBand interface {
diag() blas.Diag
}
-func equalTriangularBand(a, b triangularBand) bool {
+func sameTriangularBand(a, b triangularBand) bool {
an := a.n()
bn := b.n()
if an != bn {
@@ -607,12 +607,12 @@ var triangularBandTests = []TriangularBand{
func TestConvertTriBand(t *testing.T) {
for _, test := range triangularBandTests {
colmajor := newTriangularBandColsFrom(test)
- if !equalTriangularBand(colmajor, test) {
+ if !sameTriangularBand(colmajor, test) {
t.Errorf("unexpected result for row major to col major conversion:\n\tgot: %#v\n\tfrom:%#v",
colmajor, test)
}
rowmajor := newTriangularBandFrom(colmajor)
- if !equalTriangularBand(rowmajor, test) {
+ if !sameTriangularBand(rowmajor, test) {
t.Errorf("unexpected result for col major to row major conversion:\n\tgot: %#v\n\twant:%#v",
rowmajor, test)
}

blas: rename test check function equal*=>same*