-
Notifications
You must be signed in to change notification settings - Fork 56
Setup Mooncake extension #352
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
Conversation
Codecov Report❌ Patch coverage is
... and 21 files with indirect coverage changes 🚀 New features to boost your workflow:
|
| @@ -0,0 +1,7 @@ | |||
| function Mooncake.arrayify(A_dA::CoDual{<:TensorMap}) | |||
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.
Was there a benefit to overloading arrayify versus just making a TensorKit specific function tensorify?
| A = Mooncake.primal(A_dA) | ||
| dA_fw = Mooncake.tangent(A_dA) | ||
| data = dA_fw.data.data | ||
| dA = typeof(A)(data, A.space) |
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.
Also does this work in the complex case, where data is now probably using Mooncake's wonderful complex Complex tangent type?
This sets up the structure for beginning to deal with Mooncake in TensorKit.
I think we should merge this like it is ASAP so we can in parallel start working on: