lapack/testlapack: rename isOrthonormal to isOrthogonal

This commit is contained in:
Vladimir Chalupecky
2018-07-23 11:40:55 +02:00
committed by Vladimír Chalupecký
parent 6c36e0d6b7
commit 6f49b3c58f
27 changed files with 37 additions and 37 deletions

View File

@@ -818,8 +818,8 @@ func printRowise(a []float64, m, n, lda int, beyond bool) {
}
}
// isOrthonormal returns whether a square matrix Q is orthogonal.
func isOrthonormal(q blas64.General) bool {
// isOrthogonal returns whether a square matrix Q is orthogonal.
func isOrthogonal(q blas64.General) bool {
n := q.Rows
if n != q.Cols {
panic("matrix not square")
@@ -1382,7 +1382,7 @@ func randomOrthogonal(n int, rnd *rand.Rand) blas64.General {
// Compute Q * H_j and store the result into Q.
applyReflector(q, q, v)
}
if !isOrthonormal(q) {
if !isOrthogonal(q) {
panic("Q not orthogonal")
}
return q