pystencils.backend.ast.util.determine_memory_object

pystencils.backend.ast.util.determine_memory_object#

pystencils.backend.ast.util.determine_memory_object(expr)#

Return the memory object accessed by the given expression, together with its constness

Return type:

tuple[PsSymbol | PsBuffer | None, bool]

Returns:

Tuple (mem_obj, const) identifying the memory object accessed by the given expression, as well as its constness

Parameters:

expr (PsExpression)