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

@@ -79,7 +79,10 @@ func TestLQSolveTo(t *testing.T) {
var x Dense
lq := &LQ{}
lq.Factorize(a)
lq.SolveTo(&x, trans, b)
err := lq.SolveTo(&x, trans, b)
if err != nil {
t.Errorf("unexpected error from LQ solve: %v", err)
}
// Test that the normal equations hold.
// Aᵀ * A * x = Aᵀ * b if !trans
@@ -132,7 +135,10 @@ func TestLQSolveToVec(t *testing.T) {
var x VecDense
lq := &LQ{}
lq.Factorize(a)
lq.SolveVecTo(&x, trans, b)
err := lq.SolveVecTo(&x, trans, b)
if err != nil {
t.Errorf("unexpected error from LQ solve: %v", err)
}
// Test that the normal equations hold.
// Aᵀ * A * x = Aᵀ * b if !trans