probly.representation.sampling.array_sample_functions¶
Numpy array function implementations for sample arrays.
Functions
|
Implementation of np.apply_along_axis for sample arrays. |
|
Implementation of np.expand_dims for sample arrays. |
|
Decorator to convert a bound array function to an array function. |
|
Implementation of np.matrix_transpose for sample arrays. |
|
Implementation of dimension-reducing array functions with a keepdims kwarg. |
|
Implementation of np.reshape for sample arrays. |
|
Implementation of sample-axis-preserving array functions. |
Get the sample dimension of a sample array. |
|
|
Implementation of np.squeeze for sample arrays. |
|
Implementation of np.swapaxes for sample arrays. |
|
Implementation of np.transpose for sample arrays. |
Track the sample axis after a reduction operation. |
- probly.representation.sampling.array_sample_functions.array_apply_along_axis_function(func, params)[source]¶
Implementation of np.apply_along_axis for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_expand_dims_function(func, params)[source]¶
Implementation of np.expand_dims for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_function_override(array_func)[source]¶
Decorator to convert a bound array function to an array function.
- Parameters:
array_func (_BoundArrayFunction)
- Return type:
_ArrayFunction
- probly.representation.sampling.array_sample_functions.array_matrix_transpose(func, params)[source]¶
Implementation of np.matrix_transpose for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_reduction_function(func, params)[source]¶
Implementation of dimension-reducing array functions with a keepdims kwarg.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_reshape_function(func, params)[source]¶
Implementation of np.reshape for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_sample_axis_preserving_function(func, types, args, kwargs)[source]¶
Implementation of sample-axis-preserving array functions.
- probly.representation.sampling.array_sample_functions.array_sample_internals(_)[source]¶
- probly.representation.sampling.array_sample_functions.array_sample_internals(array)
Get the sample dimension of a sample array.
- probly.representation.sampling.array_sample_functions.array_squeeze_function(func, params)[source]¶
Implementation of np.squeeze for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_swapaxes_function(func, params)[source]¶
Implementation of np.swapaxes for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any
- probly.representation.sampling.array_sample_functions.array_transpose(func, params)[source]¶
Implementation of np.transpose for sample arrays.
- Parameters:
func (Callable)
params (BoundArguments)
- Return type:
Any