Linear algebra and matrix manipulation library for Actionscript 3

While developing the CleVR Stitcher, I needed to do quite a bit of linear algebra. I was disappointed to find that there was no Actionscript library out there for doing this, so I had to write my own. Rather than doing it from scratch, I decided to start with NIST’s Java Matrix library: JAMA, which is in the public domain.

For the benefit of anyone else needing to do stuff like this, I’m releasing the library. It’s not a full port, as I only implemented the stuff that I need. It does however support most regular operations for manipulating real matrices. As well as the normal algebra stuff, it includes classes for singular value decomposition and QR decomposition. I hope others find it useful. Let me know if you’re using it. A link back to clevr.com from your site would be appreciated but is not required.

Download it as part of the CleVR Actionscript Library

4 Responses to “Linear algebra and matrix manipulation library for Actionscript 3”

  1. Jan Theodore Galkowski Says:

    Anyone using this? Is there documentation of the API?

  2. matt Says:

    There’s no specific documentation, though the code is commented and should be self-explanatory if you know the concepts. I did a post explaining how to use the interpolation classes for image resizing.

  3. matt Says:

    (This post: http://www.clevr.com/blog/2008/resize-actionscript-bicubic-bilinear-interpolation/ )

  4. percobaan » Karthik’s AS3 Matrix Library Says:

    [...] finished porting over the Java Matrix Library from Java into Actionscript. While I know that the Clevr AS3 library is available ( and its also a Jama port), its an incomplete port and I needed to use functions such [...]

Leave a Reply