mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 07:37:03 +08:00
mat: clean up lint
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user