You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cast numpy scalars to af scalars, so that things like np.sin(scalar)+af_array=np_array don't happen. It's confusing and people are bound to use math. or cmath. functions. Pyopencl does the casting silently. funny: af_array+np.sin(scalar)=af_array
change array layout to row-major as in numpy and C/C++ so that arrays copied from the host and arrays created on the device match (or is there a reason for column-major arrays?))
make the api a little more like numpy (I know, afnumpy is there) e.g. implement more array methods (.abs(), .min(), .max(), .sum(), .imag, .real,.conj(), .transpose() and so on) and rename the array attributes (.elements() to .size, .dims() to .shape, af.moddims() to .reshape()...)
np.sin(scalar)+af_array=np_arraydon't happen. It's confusing and people are bound to usemath.orcmath.functions. Pyopencl does the casting silently. funny:af_array+np.sin(scalar)=af_array.abs(),.min(),.max(),.sum(),.imag,.real,.conj(),.transpose()and so on) and rename the array attributes (.elements()to.size,.dims()to.shape,af.moddims()to.reshape()...)