From 719f6c214836033946b52a2b69835e6a2d8f2a28 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sun, 30 Mar 2025 13:08:37 +0530 Subject: [PATCH] Check approx equality in bunchkaufman docstring --- src/bunchkaufman.jl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/bunchkaufman.jl b/src/bunchkaufman.jl index a44f1a1c..17fa6512 100644 --- a/src/bunchkaufman.jl +++ b/src/bunchkaufman.jl @@ -182,10 +182,8 @@ julia> d, u, p = S; # destructuring via iteration julia> d == S.D && u == S.U && p == S.p true -julia> S.U*S.D*S.U' - S.P*A*S.P' -2×2 Matrix{Float64}: - 0.0 0.0 - 0.0 0.0 +julia> S.U * S.D * S.U' ≈ S.P * A * S.P' +true julia> S = bunchkaufman(Symmetric(A, :L)) BunchKaufman{Float64, Matrix{Float64}, Vector{Int64}} @@ -202,10 +200,8 @@ permutation: 2 1 -julia> S.L*S.D*S.L' - A[S.p, S.p] -2×2 Matrix{Float64}: - 0.0 0.0 - 0.0 0.0 +julia> S.L * S.D * S.L' ≈ A[S.p, S.p] +true ``` """ bunchkaufman(A::AbstractMatrix{T}, rook::Bool=false; check::Bool = true) where {T} =