|
Peano
|


Public Member Functions | |
| __init__ (self, AssignableExpression base, list[Element|Variable] indices, flatten=False, get_address=False) | |
| Type | get_type (self) |
| Name | get_name (self) |
| Subscript | index_at (self, Sequence[Element] indices, get_address=False) |
| print (self, printer, int indent_level=0) | |
Data Fields | |
| base = base | |
| flatten = flatten | |
| indices = indices | |
| get_address = get_address | |
| flattened_index = self.indices[0] * self.base.get_value().array_size[-1] + self.indices[1] | |
Definition at line 554 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.__init__ | ( | self, | |
| AssignableExpression | base, | ||
| list[Element | Variable] | indices, | ||
| flatten = False, | |||
| get_address = False ) |
Definition at line 555 of file Expressions.py.
References assert.
| Name exahype2.api.dslhype2.Expressions.Subscript.get_name | ( | self | ) |
Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.
Definition at line 572 of file Expressions.py.
References base, and get_name().
Referenced by get_name().


| Type exahype2.api.dslhype2.Expressions.Subscript.get_type | ( | self | ) |
Reimplemented from exahype2.api.dslhype2.Expressions.Expression.
Definition at line 569 of file Expressions.py.
References base, and get_type().
Referenced by get_type().


| Subscript exahype2.api.dslhype2.Expressions.Subscript.index_at | ( | self, | |
| Sequence[Element] | indices, | ||
| get_address = False ) |
Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.
Definition at line 575 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.print | ( | self, | |
| printer, | |||
| int | indent_level = 0 ) |
Reimplemented from exahype2.api.dslhype2.Expressions.Expression.
Definition at line 578 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.base = base |
Definition at line 561 of file Expressions.py.
Referenced by get_name(), and get_type().
| exahype2.api.dslhype2.Expressions.Subscript.flatten = flatten |
Definition at line 562 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.flattened_index = self.indices[0] * self.base.get_value().array_size[-1] + self.indices[1] |
Definition at line 567 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.get_address = get_address |
Definition at line 564 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Subscript.indices = indices |
Definition at line 563 of file Expressions.py.