File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -202,20 +202,6 @@ impl PyArrayDescr {
202202 )
203203 }
204204
205- /// Returns `(item_dtype, shape)` if this dtype describes a sub-array, and `None` otherwise.
206- ///
207- /// The `shape` is the fixed shape of the sub-array described by this data type,
208- /// and `item_dtype` the data type of the array.
209- ///
210- /// If a field whose dtype object has this attribute is retrieved, then the extra dimensions
211- /// implied by shape are tacked on to the end of the retrieved array.
212- ///
213- /// Equivalent to [`np.dtype.subdtype`](https://numpy.org/doc/stable/reference/generated/numpy.dtype.subdtype.html).
214- pub fn subdtype ( & self ) -> Option < ( & PyArrayDescr , Vec < usize > ) > {
215- self . shape ( )
216- . and_then ( |shape| self . base ( ) . map ( |base| ( base, shape) ) )
217- }
218-
219205 /// Returns true if the dtype is a sub-array at the top level.
220206 ///
221207 /// Equivalent to [`np.dtype.hasobject`](https://numpy.org/doc/stable/reference/generated/numpy.dtype.hasobject.html).
You can’t perform that action at this time.
0 commit comments