Matrix operations with Processing

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?

1 Like
1 Like

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

I found this today, but haven’t gotten around to try to install it: JAMA: Java Matrix Package.
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.

3 Likes

Also check ND4J, 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.

3 Likes