-
-
Notifications
You must be signed in to change notification settings - Fork 33
Out-of-place triu
/tril
for Symmetric
in each branch
#1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1318 +/- ##
=======================================
Coverage 93.81% 93.81%
=======================================
Files 34 34
Lines 15715 15719 +4
=======================================
+ Hits 14743 14747 +4
Misses 972 972 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
306143a
to
d1f2c7c
Compare
d1f2c7c
to
ae9206e
Compare
ae9206e
to
68b4ace
Compare
src/adjtrans.jl
Outdated
AbstractMatrix{T}(A::AdjOrTransAbsVec) where {T} = wrapperop(A)(AbstractVector{T}(A.parent)) | ||
AbstractMatrix{T}(A::AdjOrTransAbsVec) where {T} = wrappertype(A)(AbstractVector{T}(A.parent)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there cases where the former doesn't do what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't think of any immediately. This was an overly conservative change that may not be necessary in practice.
bbcfa7d
to
7d34ec6
Compare
In
tril
/triu
forSymmetric
/Hermitian
, we should use the out-of-place variants in each branch, unless we're sure that the array may be mutated. Currently, this is only forStridedArray
s, in which case we may perform some of the operations in-place.Fixes issues like
After this PR, this operation would work: