Table Of Contents

Previous topic

pycrtools.core.hftools.mVector

Next topic

pycrtools.core.plot

This Page

pycrtools.core.htypes

BoolArray
BoolVec c++ standard template library (STL) vector of type ‘bool’
ComplexArray
ComplexVec c++ standard template library (STL) vector of type ‘complex’
CoordinateTypes
FFTWPlanManyDft
FFTWPlanManyDftC2r
FFTWPlanManyDftR2c
FloatArray
FloatVec c++ standard template library (STL) vector of type ‘float’
IntArray
IntVec c++ standard template library (STL) vector of type ‘int’
StringArray
StringVec c++ standard template library (STL) vector of type ‘str’
TBB2Data
TBBData
TYPE
atype
basetype((IntVec) -> <type >) basetype(FloatArray) -> <type ‘float’>
btype str(object=’‘) -> string
fftw_flags
fftw_sign
hWEIGHTS
type2array((float) -> Vec(0)=[]) Creates an array with elements of type ‘basetype’.
type2vector((float) -> Vec(0)=[]) Creates a vector with elements of type ‘basetype’.
typename(btype) basetype(float) -> “float”
vtype c++ standard template library (STL) vector of type ‘str’

Types

pycrtools.core.htypes.basetype(IntVec) → <type 'int'>

basetype(FloatArray) -> <type ‘float’> basetype(complex) -> <type ‘complex’>

Returns the basic type contained in the vector or array. Input can be either a vector, an array, or a type thereof.

pycrtools.core.htypes.hAllContainerTypes = [<class 'pycrtools.core.hftools._hftools.IntVec'>, <class 'pycrtools.core.hftools._hftools.FloatVec'>, <class 'pycrtools.core.hftools._hftools.ComplexVec'>, <class 'pycrtools.core.hftools._hftools.BoolVec'>, <class 'pycrtools.core.hftools._hftools.StringVec'>, <class 'pycrtools.core.hftools._hftools.IntArray'>, <class 'pycrtools.core.hftools._hftools.FloatArray'>, <class 'pycrtools.core.hftools._hftools.ComplexArray'>, <class 'pycrtools.core.hftools._hftools.BoolArray'>, <class 'pycrtools.core.hftools._hftools.StringArray'>]

The following variables define list of methods that are assigned to vectors and hArrays depending on the types that are available. E.g. hNew is available for hArrays of all types, while invFFT is only available for comlex vector and array types.

Whenever a new function is defined on the c-side, in the hftools library, it should be added here as well.

pycrtools.core.htypes.type2array(float) → Vec(0)=[]

Creates an array with elements of type ‘basetype’. Returns None if an array of the basetype does not exist.

pycrtools.core.htypes.type2vector(float) → Vec(0)=[]

Creates a vector with elements of type ‘basetype’. Returns None if a vector of the basetype does not exist.

pycrtools.core.htypes.typename(btype)

basetype(float) -> “float” basetype(str) -> “str”

Returns the name of the base type as a short string.