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

Public Member Functions

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

Data Fields

 value = value
 iteration_range = iteration_range
 size_in_memory = size_in_memory
Data Fields inherited from exahype2.api.dslhype2.Expressions.Array
 array_size = size
 element_type = element_type
 flatten = flatten

Additional Inherited Members

Static Public Member Functions inherited from exahype2.api.dslhype2.Expressions.Array
Element|Variable linearise_index (Sequence[Element|Variable] indices, Sequence[Element|Variable] dimensions)

Detailed Description

Definition at line 380 of file Expressions.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.dslhype2.Expressions.DataBlock.__init__ ( self,
Sequence[Sequence[Element | Variable]] iteration_range,
Element | ExternalStructField | FunctionCall | None value,
flatten )

Definition at line 381 of file Expressions.py.

Member Function Documentation

◆ calculate_indices()

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

Reimplemented from exahype2.api.dslhype2.Expressions.Array.

Definition at line 408 of file Expressions.py.

References iteration_range, and size_in_memory.

◆ get_type()

TDataBlock exahype2.api.dslhype2.Expressions.DataBlock.get_type ( self)

Reimplemented from exahype2.api.dslhype2.Expressions.Array.

Reimplemented in exahype2.api.dslhype2.Expressions.DataBlockSlice.

Definition at line 416 of file Expressions.py.

◆ index_at()

◆ print()

exahype2.api.dslhype2.Expressions.DataBlock.print ( self,
printer,
int indent_level = 0 )

Field Documentation

◆ iteration_range

exahype2.api.dslhype2.Expressions.DataBlock.iteration_range = iteration_range

◆ size_in_memory

exahype2.api.dslhype2.Expressions.DataBlock.size_in_memory = size_in_memory

Definition at line 388 of file Expressions.py.

Referenced by calculate_indices().

◆ value

exahype2.api.dslhype2.Expressions.DataBlock.value = value

Definition at line 382 of file Expressions.py.


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