Comments (5)
Hi,
This is kinda of a hack but you can do it like this:
a = afnumpy.ones((3,3))
b = afnumpy.array(afnumpy.arrayfire.matmul(a.d_array, a.d_array))
from afnumpy.
Thanks for your quick response. I will have a try!
By the way, afnumpy is really efficient for me (Only use Matlab before).
Huibin
from afnumpy.
Thanks!
from afnumpy.
BTW in the latest afnumpy afnumpy.dot
does matrix multiplication when given 2D arrays as input, just like regular numpy.
from afnumpy.
from afnumpy.
Related Issues (20)
- FFT dtypes HOT 4
- Feature request HOT 9
- improved fftshift HOT 2
- Create GPU array HOT 1
- Missing functions HOT 3
- definition of `dot` HOT 4
- pandas? HOT 1
- Supported Python version? HOT 2
- Citations HOT 3
- Cannot use pyqtgraph
- arrayfire to afnumpy array HOT 7
- Segmentation fault HOT 5
- fftshift fails
- module 'afnumpy' has no attribute 'pad' HOT 1
- sparse array support HOT 3
- How to convert afnumpy array to arrayfire array? HOT 3
- How to convert float <class 'afnumpy.multiarray.ndarray'> to int <class 'afnumpy.multiarray.ndarray'> ? HOT 3
- [bug] c+=123 will not modify linked array but c[:]+=123 will HOT 3
- [feature request] Any change to modify afnumpy to support c++ version of arrayfire? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afnumpy.