If it's only a 3x3 matrix, are you simply using a 2D automatic array of doubles? Could you post the code you have?