Skip to content

Conversation

@jishnub
Copy link
Member

@jishnub jishnub commented Feb 19, 2025

Unfortunately, this definition doesn't work if the matrix contains NaN, as it is not equal to itself. It is better to fall back to checking each element by default.

This fixes the mismatch in

julia> D = Diagonal(fill(NaN,2))
2×2 Diagonal{Float64, Vector{Float64}}:
 NaN        
       NaN

julia> issymmetric(D)
true

julia> issymmetric(Array(D))
false

@codecov
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.92%. Comparing base (b464203) to head (aaf1f0f).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1213      +/-   ##
==========================================
+ Coverage   91.88%   91.92%   +0.03%     
==========================================
  Files          34       34              
  Lines       15374    15372       -2     
==========================================
+ Hits        14127    14131       +4     
+ Misses       1247     1241       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jishnub jishnub merged commit 0a9c164 into master Feb 20, 2025
4 checks passed
@jishnub jishnub deleted the jishnub/diag_issymmetric branch February 20, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants