private void checkConsistenceAndThrowException(ComplexMatrix m) throws Exception {
        if (!checkConsistence(this, m)) {
            throw new Exception("Matrix dimensions must agree");
        }
    }