NumPy Support
Note
This section is a work in progress. It does not reflect the capabilities provided in the latest version of DaCe.
The Data-Centric Python-Frontend currently supports a limited subset of NumPy:
Python unary and binary operations among NumPy arrays, constants, and symbols. Binary operations mainly work between arrays that have the same shape. Operations between arrays of size 1 and arrays of any size are also supported.
Array creation routines
ndarray,eyeArray manipulation routines
transpose,broadcast_toMath routines
eye,exp,sin,cos,sqrt,log,conj,real,imag(only the input positional argument supported)Reduction routines
sum,mean,amax,amin,argmax,argmin(input positional andaxiskeyword arguments supported)Type conversion routines, e.g.,
int32,complex64, etc.All built-in universal functions (ufunc):
Ufunc call with optional
out,where, anddtypekeyword arguments. Standard NumPy broadcasting rules are applied.Ufunc
reducemethod with optionalout,keepdims,axis, andinitialkeyword arguments.Ufunc
accumulatemethod with optionalout,axiskeyword arguments.Ufunc
outermethod with optionalout,where, anddtypekeyword arguments.