You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slightly abusing this ticket: I experimented a bit with Kronecker products, My intention was to create a concise routine that can be extended to any number of dimensions. The code I attach here is limited to two-dimensional arrays leading to a four-dimensional array, but with the help of assumed-rank arrays I can make it "dimension-agnostic". kronecker_general.f90.txt
The FortranCon 2020 presentation from Patrick Seewald on "Generic Programming Techniques by example of a tensor contraction" contains an excellent demonstration of a generic tensor class which would be difficult to write without a preprocessor.
Full code examples can be found in the fortran-einsum-example GitHub repository.
As Patrick notes at the end of his presentation, the biggest limitations of the current approach are:
Here are some einsum reference pages:
And here are two blog posts with explanations:
The text was updated successfully, but these errors were encountered: