public static AMatrix calculateSymmetric(AMatrix a) {
return calculate(a);
}
private static AMatrix calculateSmall(AMatrix m, int rc) {
if (rc==1) return new Matrix11(m).inverse();
if (rc==2) return new Matrix22(m).inverse();
if (rc==3) return new Matrix33(m).inverse();
throw new IllegalArgumentException(ErrorMessages.incompatibleShape(m));
}