That looks neat! I think the second example seems like an argument for something where instead of the N
being part of the visible type it's part of the traits vtable: maybe associated consts in trait impls?
@mrx Could you provide either a reference to or an example of creating an using a built-in C++ matrix type? An implementation of a native matrix in C++ could inform potential design for one in Rust.
1 Like
Funny story. mdarray
is on the way to make into the C++ standard. It is a multi-dimensional array.
The reference: mdarray: An Owning Multidimensional Array Analog of mdspan
2 Likes
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.