arrlp.FunctionArray module
- class arrlp.FunctionArray(*, ndims: int, cpu_function: LambdaType, par_function: LambdaType, gpu_function: LambdaType, out_function: LambdaType, ini_function: LambdaType, cpu_loop: LambdaType = False, par_loop: LambdaType = False, gpu_loop: LambdaType = False, use_joblib: bool = True, remove_parallel: bool = False, remove_cuda: bool = False)[source]
Bases:
objectThis class defines a function for various array configurations.
- Parameters:
ndims (int) – Number of dimensions of the base array.
cpu_function (types.FunctionType) – Cpu function.
par_function (types.FunctionType) – Par function.
gpu_function (types.FunctionType) – Gpu function.
out_function (types.FunctionType) – Function defining output array.
ini_function (types.FunctionType) – Function defining initialization kwargs.
cpu_loop (bool) – True if cpu_function applyies default loop.
par_loop (bool) – True if par_function applyies default loop.
gpu_loop (bool) – True if gpu_function applyies default loop.
use_joblib (bool) – True to use joblib for parallel processes in parallel loop.
remove_parallel (bool) – True if the parallel implementation is slower than normal python.
remove_cuda (bool) – True if the cuda implementation is slower than normal python.
Examples
>>> from arrlp import FunctionArray ... >>> instance = FunctionArray(TODO)
- property axes
- channels: bool
- cpu_function: LambdaType
- cpu_loop: LambdaType
- cuda: bool
- gpu_function: LambdaType
- gpu_loop: LambdaType
- ini_function: LambdaType
- property ndimage
- ndims: int
- out_function: LambdaType
- par_function: LambdaType
- par_loop: LambdaType
- parallel: bool
- remove_cuda: bool
- remove_parallel: bool
- property scipyx
- stacks: bool
- use_joblib: bool
- property xp
Image
- arrlp.img_autocorr module
- arrlp.img_convolve module
- arrlp.img_convolve1d module
- arrlp.img_correlate module
- arrlp.img_correlate1d module
- arrlp.img_crosscorr module
- arrlp.img_fft module
- arrlp.img_gaussianfilter module
- arrlp.img_greyopening module
- arrlp.img_ifft module
- arrlp.img_maxifilter module
- arrlp.img_minifilter module
- arrlp.img_radialproj module
- arrlp.img_transform module
- arrlp.img_wiener module
Signal
Volume
- arrlp.vol_autocorr module
- arrlp.vol_convolve module
- arrlp.vol_convolve1d module
- arrlp.vol_correlate module
- arrlp.vol_correlate1d module
- arrlp.vol_crosscorr module
- arrlp.vol_fft module
- arrlp.vol_gaussianfilter module
- arrlp.vol_greyopening module
- arrlp.vol_ifft module
- arrlp.vol_maxifilter module
- arrlp.vol_minifilter module
- arrlp.vol_wiener module