How to annotate Smaller
dimension type for PyArray?
#388
-
I am writing a function that accepts a generic |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The Could you a concrete compiler error you face while trying to use |
Beta Was this translation helpful? Give feedback.
-
You are right. It appears that there was some other issue with my code. Closing this Q&A. |
Beta Was this translation helpful? Give feedback.
The
D
inPyArray<A, D>
just uses theDimension
trait fromndarray
, soD::Smaller
should work in exactly the same way.Could you a concrete compiler error you face while trying to use
D::Smaller
?