arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can add an af.multiply for two matrix or vector element-wise multiply?

xichaoqiang opened this issue · comments

Feature request.

Elementwise multiplication can be performed as follows:

import arrayfire as af
a = af.randu(3, 3)
b = af.randu(3, 3)
a * b

A full list of overloaded operators can be found in the array class here: https://github.com/arrayfire/arrayfire-python/blob/master/arrayfire/array.py
Unfortunately, these operators seem to be missing from the documentation...

Yes.It works.