// calculates inverse using Lower-Upper decomposition private void calcInverse() { LUPDecomposition lupd = new LUPDecomposition(matrix); inverse = lupd.inverseMatrixComponents(); inverted = true; // signal that the inverse computation has been performed }