Is there a way to use index_axis
on a reference to ArrayBase
?
#620
Labels
index_axis
on a reference to ArrayBase
?
#620
I have been reviewing #606 and to better understand how the code works I was trying to rewrite it (it usually helps me).
The skeleton of what I was trying to do looks like this:
If I try to compile it, I obviously get this error:
At this point I'd have liked to work with a dynamical dimension: get a "dynamically dimensioned" view of my
ArrayBase
reference and take the risk of a panic when usingindex_array
(if I try to pass invalid parameters).Is this even possible?
Looking at the signature of
into_dyn
, it seems I need to consume the array in the conversion, which is something I can't do.Is there an alternative I can use that could work with this function skeleton?
The text was updated successfully, but these errors were encountered: