The MatrixMath library will let you perform a number of different matrix operations in the processing development environment. For more information about processing go to processing.org
Source Code
download v1.1
I have set up website for the library with complete documentation
http://pmatrix.blogspot.com/