bundles / numpy 2.4.4 / numpy / testing / _private / utils / _gen_alignment_data
function
numpy.testing._private.utils:_gen_alignment_data
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