mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
blas/testblas: rename zPackHermitianBand to zPackTriBand
This commit is contained in:

committed by
Vladimír Chalupecký

parent
d6d3a5841a
commit
d38bfd5a8d
@@ -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
|
||||
}
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user