numojo.core.indexing.utility¶
Utility functions (numojo.core.indexing.utility)
Implements N-DIMENSIONAL ARRAY UTILITY FUNCTIONS
SECTIONS OF THE FILE: 1. NDArray dtype conversions. 2. Numojo.NDArray to other collections. 3. Miscellaneous utility functions.
Aliases¶
newaxis¶
Value: NewAxis()
Structs¶
NewAxis¶
Memory convention: memory_only
Implements: AnyType, ImplicitlyDestructible, Stringable
Aliases¶
__del__is_trivial¶
Value: True
Methods¶
__ne__¶
Checks inequality between two NewAxis instances.
Args:
self(Self)other(Self)
Returns:
Bool
__repr__¶
Returns a string representation of the NewAxis instance.
Args:
self(Self)
Returns:
String
Functions¶
bool_to_numeric¶
Convert a boolean NDArray to a numeric NDArray.
Parameters:
dtype(DType): The data type of the output NDArray elements.
Args:
array(NDArray): The boolean NDArray to convert.
Returns:
NDArray
Raises
to_numpy¶
Convert a NDArray to a numpy array.
Example:
Parameters:
dtype(DType): The data type of the NDArray elements.
Args:
array(NDArray): The NDArray to convert.
Returns:
PythonObject
Raises