We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c9e125 commit 2fea65eCopy full SHA for 2fea65e
test/lapack.jl
@@ -687,7 +687,11 @@ end
687
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
688
local n = 10
689
a = randn(elty, n, n)
690
- A = a'*a
+ # generate a symmetric positive definite matrix as Q*D*Q',
691
+ # where Q is orthogonal, and D contains the eigenvalues
692
+ Q, _ = qr(a)
693
+ D = Diagonal(rand(real(elty), n) .+ real(oneunit(elty)))
694
+ A = Matrix(Hermitian(Q*D*Q')) # ensure that the matrix is exactly hermitian
695
B = rand(elty, n, n)
696
D = copy(A)
697
C = copy(B)
0 commit comments