Peano
Loading...
Searching...
No Matches
exahype2.api.dslhype2.Expressions.Array Class Reference
Inheritance diagram for exahype2.api.dslhype2.Expressions.Array:
Collaboration diagram for exahype2.api.dslhype2.Expressions.Array:

Public Member Functions

 __init__ (self, TElement element_type, Sequence[Element|Variable] size, bool flatten)
TArray get_type (self)
list[Element|Variable] calculate_indices (self, Sequence[Element|Variable] indices)
Public Member Functions inherited from exahype2.api.dslhype2.Expressions.Expression
 print (self, printer, int indent_level=0)
Expression index_at (self, Sequence[Element|Variable] indices, get_address=False)

Static Public Member Functions

Element|Variable linearise_index (Sequence[Element|Variable] indices, Sequence[Element|Variable] dimensions)

Data Fields

 array_size = size
 element_type = element_type
 flatten = flatten

Detailed Description

Definition at line 96 of file Expressions.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.dslhype2.Expressions.Array.__init__ ( self,
TElement element_type,
Sequence[Element | Variable] size,
bool flatten )

Definition at line 97 of file Expressions.py.

Member Function Documentation

◆ calculate_indices()

list[Element|Variable] exahype2.api.dslhype2.Expressions.Array.calculate_indices ( self,
Sequence[Element | Variable] indices )

Reimplemented in exahype2.api.dslhype2.Expressions.DataBlock.

Definition at line 108 of file Expressions.py.

◆ get_type()

TArray exahype2.api.dslhype2.Expressions.Array.get_type ( self)

◆ linearise_index()

Element | Variable exahype2.api.dslhype2.Expressions.Array.linearise_index ( Sequence[Element | Variable] indices,
Sequence[Element | Variable] dimensions )
static

Definition at line 112 of file Expressions.py.

References assert.

Field Documentation

◆ array_size

exahype2.api.dslhype2.Expressions.Array.array_size = size

Definition at line 98 of file Expressions.py.

◆ element_type

exahype2.api.dslhype2.Expressions.Array.element_type = element_type

Definition at line 100 of file Expressions.py.

◆ flatten

exahype2.api.dslhype2.Expressions.Array.flatten = flatten

Definition at line 101 of file Expressions.py.


The documentation for this class was generated from the following file: