mfajnberg / tensorevo

0 stars 1 forks source link

`Index` trait bound for `Tensor` #14

Closed daniil-berg closed 11 months ago

daniil-berg commented 1 year ago

:link: std::ops::Index

Default implementation should allow element access via tuples or slices of integers, similarly to how ndarray::ArrayBase implements that trait. This likely requires a custom trait similar to ndarray::NdIndex to constrain the index type.