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 Iladlcer interface {
10 Iladlc(m, n int, a []float64, lda int) int
13 func IladlcTest(t *testing.T, impl Iladlcer) {
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.Iladlc(test.m, test.n, test.a, test.lda)
80 t.Errorf("Column mismatch case %v. Want: %v, got: %v", i, test.ans, ans)