From d38bfd5a8d0b4455dba3b7f7b1347b390cea856e Mon Sep 17 00:00:00 2001 From: Vladimir Chalupecky Date: Wed, 14 Mar 2018 14:44:54 +0100 Subject: [PATCH] blas/testblas: rename zPackHermitianBand to zPackTriBand --- blas/testblas/common.go | 6 +++--- blas/testblas/zhbmv.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blas/testblas/common.go b/blas/testblas/common.go index 36778f0f..c47897a7 100644 --- a/blas/testblas/common.go +++ b/blas/testblas/common.go @@ -454,9 +454,9 @@ func zPackBand(kL, kU, ldab int, m, n int, a []complex128, lda int) []complex128 return ab } -// zPackHermitianBand returns the (k+1) band of an n×n Hermitian matrix A in band -// matrix format with ldab stride. Out-of-range elements are filled with NaN. -func zPackHermitianBand(k, ldab int, uplo blas.Uplo, n int, a []complex128, lda int) []complex128 { +// zPackTriBand returns in band matrix format the (k+1) band in the uplo +// triangle of an n×n matrix A. Out-of-range elements are filled with NaN. +func zPackTriBand(k, ldab int, uplo blas.Uplo, n int, a []complex128, lda int) []complex128 { if n == 0 { return nil } diff --git a/blas/testblas/zhbmv.go b/blas/testblas/zhbmv.go index 3e7a5640..4a79fa1d 100644 --- a/blas/testblas/zhbmv.go +++ b/blas/testblas/zhbmv.go @@ -1,4 +1,4 @@ -// Copyright ©2017 The Gonum Authors. All rights reserved. +// Copyright ©2018 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -77,7 +77,7 @@ func testZhbmv(t *testing.T, impl Zhbmver, rnd *rand.Rand, uplo blas.Uplo, n, k a[i*lda+i] = complex(rnd.NormFloat64(), math.NaN()) } } - ab := zPackHermitianBand(k, ldab, uplo, n, a, lda) + ab := zPackTriBand(k, ldab, uplo, n, a, lda) abCopy := make([]complex128, len(ab)) copy(abCopy, ab)