1 // Copyright ©2015 The Gonum Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 type Iladlrer interface {
10 Iladlr(m, n int, a []float64, lda int) int
13 func IladlrTest(t *testing.T, impl Iladlrer) {
14 for i, test := range []struct {
20 a: []float64{0, 0, 0, 0},
27 a: []float64{0, 0, 0, 0},
34 a: []float64{0, 0, 0, 0},
41 a: []float64{0, 0, 0, 0},
78 ans := impl.Iladlr(test.m, test.n, test.a, test.lda)
80 t.Errorf("Column mismatch case %v. Want: %v, got: %v", i, test.ans, ans)