mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-30 11:13:30 +08:00
docs(numpy): drop duplicated ndim (#5119)
This commit is contained in:
parent
a9256a6d25
commit
6497b3f2f2
@ -378,8 +378,6 @@ uses of ``py::array``:
|
|||||||
|
|
||||||
- ``.itemsize()`` returns the size of an item in bytes, i.e. ``sizeof(T)``.
|
- ``.itemsize()`` returns the size of an item in bytes, i.e. ``sizeof(T)``.
|
||||||
|
|
||||||
- ``.ndim()`` returns the number of dimensions.
|
|
||||||
|
|
||||||
- ``.shape(n)`` returns the size of dimension ``n``
|
- ``.shape(n)`` returns the size of dimension ``n``
|
||||||
|
|
||||||
- ``.size()`` returns the total number of elements (i.e. the product of the shapes).
|
- ``.size()`` returns the total number of elements (i.e. the product of the shapes).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user