|
|
|
|
|
by logicchains
2310 days ago
|
|
Thanks for pointing it out, that library looks quite interesting. A question: it mentions it "Supports tensors of up to 6 dimensions.". Sadly some of us have to deal with tensors of even more dimensions sometimes. Does Nim support some kind of equivalent to C++'s variadic templates that would allow creating tensors with an arbitrary number of dimensions? |
|
Actually it's 7 [1]
But in my future backend revamp I plan to make the default 6 [2]
Note that the line can easily be updated to
as in the planned revamp and then you would be able to change the MAXRANK with a compile parameter [1]: https://github.com/mratsim/Arraymancer/blob/6fddfa9a734ac01c...[2]: https://github.com/numforge/laser/blob/d1e6ae6106564bfb350d4...