bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / testing / _private / utils / _gen_alignment_data
function
numpy.testing._private.utils:_gen_alignment_data
source: build-install/usr/lib/python3.14/site-packages/numpy/testing/_private/utils.py :2103
Signature
def _gen_alignment_data ( dtype = <class 'numpy.float32'> , type = binary , max_size = 24 ) Summary
generator producing data with different alignment and offsets to test simd vectorization
Parameters
dtype: dtypedata type to produce
type: string'unary': create data for unary operations, creates one input
and output array
'binary': create data for unary operations, creates two input
and output array
max_size: integermaximum size of data to produce
Returns
: if type is 'unary' yields one output, one input array and a message: containing information on the data: if type is 'binary' yields one output array, two input array and a message: containing information on the data
Aliases
-
numpy.testing._gen_alignment_data