vtkmodules.numpy_interface.vtk_none_array#
VTKNoneArray — numpy-compatible void array for parallel composite operations.
VTKNoneArray is used to represent a “void” array. An instance of this class (NoneArray) is returned instead of None when an array that doesn’t exist in a DataSetAttributes is requested. All operations on the NoneArray return NoneArray. The main reason for this is to support operations in parallel where one of the processes may be working on an empty dataset. In such cases, the process is still expected to evaluate a whole expression because some of the functions may perform bulk MPI communication. None cannot be used in these instances because it cannot properly override operators such as add, sub etc.
The singleton instance is NoneArray, importable as::
from vtkmodules.numpy_interface.vtk_none_array import NoneArray
Module Contents#
Classes#
Singleton void array — every operation returns itself. |
Data#
API#
- class vtkmodules.numpy_interface.vtk_none_array.VTKNoneArray#
Singleton void array — every operation returns itself.
- _instance#
None
- __new__()#
- property dataset#
- property association#
- property shape#
- property ndim#
- property size#
- property dtype#
- property nbytes#
- property T#
- property value#
- __array__(dtype=None, copy=None)#
- __buffer__(flags)#
- __array_ufunc__(ufunc, method, *inputs, **kwargs)#
- __array_function__(func, types, args, kwargs)#
- __getitem__(key)#
- __setitem__(key, value)#
- __add__(other)#
- __radd__(other)#
- __sub__(other)#
- __rsub__(other)#
- __mul__(other)#
- __rmul__(other)#
- __truediv__(other)#
- __rtruediv__(other)#
- __floordiv__(other)#
- __rfloordiv__(other)#
- __pow__(other)#
- __rpow__(other)#
- __mod__(other)#
- __rmod__(other)#
- __lshift__(other)#
- __rlshift__(other)#
- __rshift__(other)#
- __rrshift__(other)#
- __and__(other)#
- __rand__(other)#
- __or__(other)#
- __ror__(other)#
- __xor__(other)#
- __rxor__(other)#
- __lt__(other)#
- __le__(other)#
- __eq__(other)#
- __ne__(other)#
- __ge__(other)#
- __gt__(other)#
- __neg__()#
- __pos__()#
- __abs__()#
- __invert__()#
- sum(axis=None, **kwargs)#
- mean(axis=None, **kwargs)#
- min(axis=None, **kwargs)#
- max(axis=None, **kwargs)#
- std(axis=None, **kwargs)#
- var(axis=None, **kwargs)#
- any(axis=None, **kwargs)#
- all(axis=None, **kwargs)#
- prod(axis=None, **kwargs)#
- argmin(axis=None, **kwargs)#
- argmax(axis=None, **kwargs)#
- cumsum(axis=None, **kwargs)#
- cumprod(axis=None, **kwargs)#
- astype(dtype)#
- reshape(*args, **kw)#
- flatten(order='C')#
- ravel(order='C')#
- copy(order='C')#
- squeeze(axis=None)#
- transpose(*axes)#
- tolist()#
- clip(*args, **kw)#
- round(decimals=0, **kw)#
- sort(axis=0, **kw)#
- dot(other)#
- __len__()#
- __iter__()#
- __contains__(item)#
- __bool__()#
- __repr__()#
- __str__()#
- __hash__()#
- vtkmodules.numpy_interface.vtk_none_array.NoneArray#
‘VTKNoneArray(…)’