You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gist of the issue is the type of the AsRef<[SliceOrIndex]> in (slicer in the example).
|
13 | a.slice(slice)
| ^^^^^ expected reference, found struct `ndarray::SliceInfo`
|
= note: expected type `&ndarray::SliceInfo<[ndarray::SliceOrIndex], ndarray::Dim<ndarray::IxDynImpl>>`
found type `ndarray::SliceInfo<std::vec::Vec<ndarray::SliceOrIndex>, _>`
I can't see how to make the typechecker happy here, and I can't instantiate SliceInfo<[ndarray::SliceOrIndex]> because [ndarray::SliceOrIndex] is not sized. Am I missing something obvious ?
The text was updated successfully, but these errors were encountered:
Hey folks,
I'm struggling to find a way to call slice() on a dynamic ranked array, and can find a way to make it work.
The gist of the issue is the type of the
AsRef<[SliceOrIndex]>
in (slicer
in the example).I can't see how to make the typechecker happy here, and I can't instantiate
SliceInfo<[ndarray::SliceOrIndex]>
because[ndarray::SliceOrIndex]
is not sized. Am I missing something obvious ?The text was updated successfully, but these errors were encountered: