title: Finding inverse matrix
body: <p>I want to find the inverse of the XYZ to LMS colour space matrix. After looking around I found that processing has a transpose function. But I know that the transpose of a matrix doesn't always equal the inverse. I could figure out a way of calculating the inverse manually but does processing have any built in functions for this or has anyone already figure out a way to do this and doesn't mind sharing?</p>
  
  <pre><code>float []lms2xyzConverter(float[] lmsVals){               
  
     //Normalized to D65
     float[][]xyz2lms =  {   {0.4002 , 0.7076 , -0.0808},           
                             {-0.2263 , 1.1653 , 0.0457},       
                             {0.00000 , 0.00000 , 0.9182} }; 
  
     float [][]lms2xyz = xyz2lms.transpose();
  }; 
  </code></pre>