You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my observation, isposdef sometimes return false for positive definite matrices.
I think isposdef in the code below should both return true.
C's eigval is all positive, thus C should be posdef, I think, but posdef(C) returns false.
Am I wrong?
using Random
using LinearAlgebra
Random.seed!(0)
R =rand(3,3)
A = R./eigvals(R)[1]
B = A'*(2.0*[100; 010; 001])*A
C = A'*(3.0*[100; 010; 001])*A
@showeigvals(B) # all positive@showeigvals(C) # all positive@showisposdef(B) # true@showisposdef(C) # false!versioninfo()
In my observation, isposdef sometimes return false for positive definite matrices.
I think isposdef in the code below should both return true.
C's eigval is all positive, thus C should be posdef, I think, but posdef(C) returns false.
Am I wrong?
eigvals(B) = [0.00334175, 0.24934, 2.97084]
eigvals(C) = [4.45626, 0.374009, 0.00501262] <-- All Positive
isposdef(B) = true
isposdef(C) = false <- Why?
Julia Version 1.1.1
Commit 55e36cc (2019-05-16 04:10 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin15.6.0)
CPU: Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
JULIA_DIR = /Applications/Julia-1.1.app/Contents/Resources/julia
JULIA_HOME = /Applications/Julia-1.1.app/Contents/Resources/julia/bin
JULIA_EDITOR = atom -a
JULIA_NUM_THREADS = 2
The text was updated successfully, but these errors were encountered: