# Matrix operations with Processing

**URL:** https://discourse.processing.org/t/matrix-operations-with-processing/11062
**Category:** Processing.py
**Created:** [May 9, 2019, 11:49am UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062 "2019-05-09T11:49:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Avatrin](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Avatrin](https://discourse.processing.org/u/Avatrin)
#### Post date: [May 9, 2019, 11:49am UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062/1 "2019-05-09T11:49:59Z")

</div>

Hi

I want to create an animation with Processing. I need to use matrix multiplication for the physics and am aware of the fact that I cannot use numpy with PyProcessing. So, I need to find an alternative. Do anybody here have any suggestions for what I can use? Also, how do I install it to use with Processing in Python mode?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [May 9, 2019, 12:10pm UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062/2 "2019-05-09T12:10:52Z")

</div>

> [@Processing.py: Numpy import error](https://discourse.processing.org/t/processing-py-numpy-import-error/10935/6):
>
> [GitHub.com/search?l=Java&o=desc&q=numpy&s=updated&type=Repositories](http://GitHub.com/search?l=Java&o=desc&q=numpy&s=updated&type=Repositories)

---

<div class="post-metadata">

### Author: ![Avatrin](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Avatrin](https://discourse.processing.org/u/Avatrin)
#### Post date: [May 9, 2019, 12:16pm UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062/3 "2019-05-09T12:16:00Z")

</div>

Oh, thank you so much!! How do I import this into Processing?

---

<div class="post-metadata">

### Author: ![raron](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/raron/32/13651_2.png) [@raron](https://discourse.processing.org/u/raron)
#### Post date: [May 9, 2019, 2:38pm UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062/4 "2019-05-09T14:38:20Z")

</div>

I found this today, but haven’t gotten around to try to install it: [JAMA: Java Matrix Package](https://math.nist.gov/javanumerics/jama/).  
I’m not actually sure how to install it (as it’s a Java library in a .jar file), but guessing one of these methods should work?  
[How to Install a Contributed Library](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library).

---

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [May 10, 2019, 10:47am UTC](https://discourse.processing.org/t/matrix-operations-with-processing/11062/5 "2019-05-10T10:47:19Z")

</div>

Also check [ND4J](https://deeplearning4j.org/docs/latest/nd4j-overview), the « numpy » for the JVM as it’s creators present it. It seems to be very similar (many functions share the same name) and even faster than numpy.
