-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add repartition(!)(::AbstractTensorMap)
#116
Conversation
@Jutho, I am not actually sure how to make |
Can you try with |
Thanks! Indeed, combining the |
So now, for Julia v1.6, there is a slight type-instability for |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 81.29% 81.46% +0.16%
==========================================
Files 42 42
Lines 5575 5588 +13
==========================================
+ Hits 4532 4552 +20
+ Misses 1043 1036 -7 ☔ View full report in Codecov by Sentry. |
Ok I will merge. Given that this is an addition to the public interface, I guess this should become TensorKit v0.13? Let's hope this doesn't bring bad luck :-). |
We might want to tag the latest version (v0.12.3) before this then, I think this didn't happen yet. |
for k in 0:5 | ||
for p in permutations(1:5) | ||
p1 = ntuple(n -> p[n], k) | ||
p2 = ntuple(n -> p[k + n], 5 - k) | ||
t2 = permute(t, (p1, p2)) | ||
a2 = convert(Array, t2) | ||
@test a2 ≈ permutedims(convert(Array, t), (p1..., p2...)) | ||
@test a2 ≈ permutedims(a, (p1..., p2...)) |
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.
That's a nice improvement!
No description provided.