mat: clean up lint

This commit is contained in:
Dan Kortschak
2019-11-02 14:17:29 +10:30
parent ad7fbd52c6
commit 455f782e4c
10 changed files with 93 additions and 40 deletions

View File

@@ -103,7 +103,10 @@ func TestQRSolveTo(t *testing.T) {
var x Dense
var qr QR
qr.Factorize(a)
qr.SolveTo(&x, trans, b)
err := qr.SolveTo(&x, trans, b)
if err != nil {
t.Errorf("unexpected error from QR solve: %v", err)
}
// Test that the normal equations hold.
// Aᵀ * A * x = Aᵀ * b if !trans
@@ -156,7 +159,10 @@ func TestQRSolveVecTo(t *testing.T) {
var x VecDense
var qr QR
qr.Factorize(a)
qr.SolveVecTo(&x, trans, b)
err := qr.SolveVecTo(&x, trans, b)
if err != nil {
t.Errorf("unexpected error from QR solve: %v", err)
}
// Test that the normal equations hold.
// Aᵀ * A * x = Aᵀ * b if !trans