Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
stat: reflect change in mat64 API for equality testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 20, 2015
1 parent db79909 commit 9e47be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions covariancematrix_test.go
Expand Up @@ -61,7 +61,7 @@ func TestCovarianceMatrix(t *testing.T) {
copy(w, test.weights)
}
c := CovarianceMatrix(nil, test.data, test.weights)
if !c.Equals(test.ans) {
if !mat64.Equal(c, test.ans) {
t.Errorf("%d: expected cov %v, found %v", i, test.ans, c)
}
if !floats.Equal(d, r.Data) {
Expand Down Expand Up @@ -155,7 +155,7 @@ func TestCorrelationMatrix(t *testing.T) {
copy(w, test.weights)
}
c := CorrelationMatrix(nil, test.data, test.weights)
if !c.Equals(test.ans) {
if !mat64.Equal(c, test.ans) {
t.Errorf("%d: expected corr %v, found %v", i, test.ans, c)
}
if !floats.Equal(d, r.Data) {
Expand Down

0 comments on commit 9e47be1

Please sign in to comment.