Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,11 @@ end
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
local n = 10
a = randn(elty, n, n)
A = a'*a
# generate a symmetric positive definite matrix as Q*D*Q',
# where Q is orthogonal, and D contains the eigenvalues
Q, _ = qr(a)
D = Diagonal(rand(real(elty), n) .+ real(oneunit(elty)))
A = Matrix(Hermitian(Q*D*Q')) # ensure that the matrix is exactly hermitian
B = rand(elty, n, n)
D = copy(A)
C = copy(B)
Expand Down