| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 75.00000% with 9 lines in your changes missing coverage. Please review.
|
Sorry, something went wrong.
| V_dom = fuse(domain(t)) | ||
| U = similar(t, codomain(t) ← V_cod) | ||
| S = DiagonalTensorMap{real(scalartype(t))}(undef, V_cod ← V_dom) | ||
| S = similar_diagonal(t, real(scalartype(t)), V_cod ← V_dom) |
There was a problem hiding this comment.
🎉 🎉 🎉
Sorry, something went wrong.
There was a problem hiding this comment.
OK, I think this will really simplify things for the GPU support. Thanks very much for doing this!
Sorry, something went wrong.
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
This PR adds the (unexported for now?) similar_diagonal function which acts like similar but instead returns a DiagonalTensorMap.
The main point is to facilitate GPU support by correctly taking into account the storage types of the provided input tensor.