mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 11:21:14 +08:00
lapack/testlapack: rename isOrthonormal to isOrthogonal
This commit is contained in:
committed by
Vladimír Chalupecký
parent
6c36e0d6b7
commit
6f49b3c58f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user