nb::ndarray
, constraint on nb::ndim<1>
or nb::ndim<2>
#354
-
Hi, Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could not have a dimension annotation at all and deal with it at runtime. The ndarray docs show how this can be done with array views. Otherwise, the |
Beta Was this translation helpful? Give feedback.
You could not have a dimension annotation at all and deal with it at runtime. The ndarray docs show how this can be done with array views. Otherwise, the
std::variant
type caster may come in handy.