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.
10 "golang.org/x/exp/rand"
12 "gonum.org/v1/gonum/blas"
15 func DtrmvBenchmark(b *testing.B, dtrmv Dtrmver, n, lda, incX int, ul blas.Uplo, tA blas.Transpose, d blas.Diag) {
16 rnd := rand.New(rand.NewSource(0))
17 a := make([]float64, n*lda)
22 x := make([]float64, n*incX)
28 for i := 0; i < b.N; i++ {
29 dtrmv.Dtrmv(ul, tA, d, n, a, lda, x, incX)