3 ms·
Index notation is often less confusing than numbered dimensions, without requiring an you to use an explicit NamedTensor. Perhaps of interest, here's a quick p
by mcabbott 8y ago
Index notation is often less confusing than numbered dimensions, without requiring an you to use an explicit NamedTensor.
Perhaps of interest, here's a quick prototype of how this could be useful. If you use an index "n"-for-number on the dimension for which you previously used an index "c"-for-colour (when performing any einsum or slicing or re-shaping operation) then you will get a warning:
https://github.com/mcabbott/TensorSlice.jl#checking https://github.com/mcabbott/TensorSlice.jl#checking