-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
- cast numpy scalars to af scalars, so that things like
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 - 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()...)
Metadata
Metadata
Assignees
Labels
No labels