pystencils.backend.ast.expressions.PsAddressOf

Contents

pystencils.backend.ast.expressions.PsAddressOf#

class pystencils.backend.ast.expressions.PsAddressOf(operand)#

Take the address of a memory location.

Danger

Taking the address of a memory location owned by a symbol or field array introduces an alias to that memory location. As pystencils assumes its symbols and fields to never be aliased, this can subtly change the semantics of a kernel. Use the address-of operator with utmost care.

Parameters:

operand (PsExpression)