blas/testblas: rename zPackHermitianBand to zPackTriBand

This commit is contained in:
Vladimir Chalupecky
2018-03-14 14:44:54 +01:00
committed by Vladimír Chalupecký
parent d6d3a5841a
commit d38bfd5a8d
2 changed files with 5 additions and 5 deletions

View File

@@ -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
}

View File

@@ -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)