mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/matrix_identity] Do not create matrix for dim > 15
We know this would fill up the pool
This commit is contained in:
@@ -58,7 +58,7 @@ Expression MatrixIdentity::shallowReduce(ExpressionNode::ReductionContext reduct
|
||||
if (dimension.isNegative() || dimension.isZero()) {
|
||||
return replaceWithUndefinedInPlace();
|
||||
}
|
||||
if (Integer::NaturalOrder(dimension, Integer(Integer::k_maxExtractableInteger)) > 0) {
|
||||
if (Integer::NaturalOrder(dimension, Integer(15)) > 0) { // For now, after 15 it would fill the pool
|
||||
return *this;
|
||||
}
|
||||
int dim = dimension.extractedInt();
|
||||
|
||||
Reference in New Issue
Block a user