legate.core.SymbolicExpr.is_identity#

SymbolicExpr.is_identity(self, int32_t dim) bool#

For a given dimension, return whether the expression is an identity mapping.

Parameters:

dim (int) – The dimension to check

Returns:

True if the expression is the identity, False otherwise.

Return type:

bool