MCPcopy Create free account
hub / github.com/numpy/numpy / ndim

Method ndim

numpy/array_api/_array_object.py:1095–1101  ·  view source on GitHub ↗

Array API compatible wrapper for :py:meth:`np.ndarray.ndim `. See its docstring for more information.

(self)

Source from the content-addressed store, hash-verified

1093
1094 @property
1095 def ndim(self) -> int:
1096 """
1097 Array API compatible wrapper for :py:meth:`np.ndarray.ndim <numpy.ndarray.ndim>`.
1098
1099 See its docstring for more information.
1100 """
1101 return self._array.ndim
1102
1103 @property
1104 def shape(self) -> Tuple[int, ...]:

Callers 15

format_arrayMethod · 0.80
argwhereFunction · 0.80
_get_bin_edgesFunction · 0.80
histogramddFunction · 0.80
gradientFunction · 0.80
hsplitFunction · 0.80
vsplitFunction · 0.80
dsplitFunction · 0.80
__getitem__Method · 0.80
nanvarFunction · 0.80
fromnumeric.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_countMethod · 0.64