You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / testing / _private / utils / _gen_alignment_data

function

numpy.testing._private.utils:_gen_alignment_data

source: /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 : dtype

data 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 : integer

maximum 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