sample.numpy_functions

Numpy array function implementations for sample arrays.

Classes

NumpySampleCreator

Protocol for creating sample arrays.

NumpySampleInternals

Internal information about a sample array.

Functions

numpy_apply_along_axis_function

Implementation of np.apply_along_axis for sample arrays.

numpy_concatenate_function

Implementation of np.concatenate for sample arrays.

numpy_copy_function

Implementation of np.copy for sample arrays.

numpy_expand_dims_function

Implementation of np.expand_dims for sample arrays.

numpy_function_override

Decorator to convert a bound array function to an array function.

numpy_internals_override

Decorator to convert a function taking a NumPy sample argument.

numpy_matrix_transpose

Implementation of np.matrix_transpose for sample arrays.

numpy_reduction_function

Implementation of dimension-reducing array functions with a keepdims kwarg.

numpy_reshape_function

Implementation of np.reshape for sample arrays.

numpy_sample_axis_preserving_function

Implementation of sample-axis-preserving array functions.

numpy_sample_internals

Get the sample dimension of a sample array.

numpy_squeeze_function

Implementation of np.squeeze for sample arrays.

numpy_stack_function

Implementation of np.stack for sample arrays.

numpy_swapaxes_function

Implementation of np.swapaxes for sample arrays.

numpy_transpose

Implementation of np.transpose for sample arrays.

track_sample_axis_after_reduction

Track the sample axis after a reduction operation.