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

Public Member Functions

 __init__ (self, Name name)
Name get_name (self)
Expression get_value (self)
Type get_type (self)
 print (self, printer, int indent_level=0)
Variable convert_integers_to_indices (self)
Variable convert_indices_to_integers (self)
AssignableExpression index_at (self, Sequence[Element|Variable] indices, get_address=False)
Variable|Element __add__ (self, Element|Variable rhs)
Variable|Element __sub__ (self, Element|Variable rhs)
Element __neg__ (self)
Variable|Element __mul__ (self, Element|Variable rhs)
Element __div__ (self, Element|Variable rhs)

Data Fields

 name = name
int value = 0:

Static Public Attributes

dict symbol_map = {}

Detailed Description

Definition at line 161 of file Expressions.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.dslhype2.Expressions.Variable.__init__ ( self,
Name name )

Definition at line 164 of file Expressions.py.

Member Function Documentation

◆ __add__()

Variable | Element exahype2.api.dslhype2.Expressions.Variable.__add__ ( self,
Element | Variable rhs )

Definition at line 203 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), and exahype2.api.dslhype2.Expressions.Expression.get_type().

Here is the call graph for this function:

◆ __div__()

Element exahype2.api.dslhype2.Expressions.Variable.__div__ ( self,
Element | Variable rhs )

Definition at line 233 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), and exahype2.api.dslhype2.Expressions.Expression.get_type().

Here is the call graph for this function:

◆ __mul__()

Variable | Element exahype2.api.dslhype2.Expressions.Variable.__mul__ ( self,
Element | Variable rhs )

Definition at line 226 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), and exahype2.api.dslhype2.Expressions.Expression.get_type().

Here is the call graph for this function:

◆ __neg__()

Element exahype2.api.dslhype2.Expressions.Variable.__neg__ ( self)

Definition at line 221 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), and exahype2.api.dslhype2.Expressions.Expression.get_type().

Here is the call graph for this function:

◆ __sub__()

Variable | Element exahype2.api.dslhype2.Expressions.Variable.__sub__ ( self,
Element | Variable rhs )

Definition at line 210 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), and exahype2.api.dslhype2.Expressions.Expression.get_type().

Here is the call graph for this function:

◆ convert_indices_to_integers()

◆ convert_integers_to_indices()

◆ get_name()

◆ get_type()

◆ get_value()

◆ index_at()

AssignableExpression exahype2.api.dslhype2.Expressions.Variable.index_at ( self,
Sequence[Element | Variable] indices,
get_address = False )

Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.

Definition at line 195 of file Expressions.py.

References exahype2.api.dslhype.SyntaxTree.BinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Boolean.get_type(), exahype2.api.dslhype.SyntaxTree.Comment.get_type(), exahype2.api.dslhype.SyntaxTree.Comparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlock.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockBinaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockComparison.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockIndex.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryMax.get_type(), exahype2.api.dslhype.SyntaxTree.DataBlockUnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrix.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.DiagonalMatrixConstructionFromValue.get_type(), exahype2.api.dslhype.SyntaxTree.Expression.get_type(), exahype2.api.dslhype.SyntaxTree.Float.get_type(), exahype2.api.dslhype.SyntaxTree.Integer.get_type(), exahype2.api.dslhype.SyntaxTree.Matrix.get_type(), exahype2.api.dslhype.SyntaxTree.MatrixConstructionFromKroneckerProduct.get_type(), exahype2.api.dslhype.SyntaxTree.Name.get_type(), exahype2.api.dslhype.SyntaxTree.Reference.get_type(), exahype2.api.dslhype.SyntaxTree.String.get_type(), exahype2.api.dslhype.SyntaxTree.Subscript.get_type(), exahype2.api.dslhype.SyntaxTree.UnaryOperation.get_type(), exahype2.api.dslhype.SyntaxTree.Vector.get_type(), exahype2.api.dslhype.SyntaxTree.VectorIndex.get_type(), exahype2.api.dslhype2.Expressions.Expression.get_type(), and get_value().

Here is the call graph for this function:

◆ print()

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

Reimplemented from exahype2.api.dslhype2.Expressions.Expression.

Definition at line 178 of file Expressions.py.

Field Documentation

◆ name

exahype2.api.dslhype2.Expressions.Variable.name = name

Definition at line 165 of file Expressions.py.

Referenced by solvers.aderdg.kernels.Gemms.Gemms.__init__(), solvers.aderdg.kernels.Gemms.Gemms.__repr__(), test_derive_load_store_compute_flag._FakeSubmodel.__repr__(), test_propagate_use_statements._FakeSubmodel.__repr__(), exaparty.api.particle.ExplicitEulerFixedSearchRadius.ExplicitEulerFixedSearchRadius.__setup_algorithm_steps(), exaparty.api.particle.AlgorithmStep.AlgorithmStep.__str__(), exahype2.api.Solver.Solver.Plotter._add_time_interval_bookkeeping_to_solver(), exaparty.api.particle.Particle.Particle._dependency_checks_modify_steps(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase._insert_constraint_enforcement(), exaparty.api.particle.LeapfrogFixedSearchRadius.LeapfrogFixedSearchRadius._setup_algorithm_steps_dict(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase._tasks_of_this_solver(), peano4.api.datamodel.DoF.DoF.additional_load_and_store_arguments_for_other_dof(), exaparty.api.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius.algorithm_steps(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle.algorithm_steps(), exaparty.api.particle.tests.DisappearingParticleTest.DisappearingParticleTest.algorithm_steps(), exaparty.api.particle.tests.testLeapfrogFixedTimeStepSize.testLeapfrogFixedTimeStepSize.algorithm_steps(), convert_indices_to_integers(), convert_integers_to_indices(), exahype2.api.Solver.Solver.Plotter.create_finish_call(), exahype2.api.Solver.Solver.Plotter.create_is_active_predicate(), exagrype.api.FOSOReconstructionSolver.FOSOReconstructionSolver.create_task_graph(), peano4.api.solversteps.UserActionSet.UserActionSet.get_action_set_name(), peano4.api.taskgraph.compiler.fuse-steps-illustrations._IllustrationActionSet.get_action_set_name(), test_fuse_steps._FakeActionSet.get_action_set_name(), peano4.api.datamodel.DoF.DoF.get_full_qualified_type(), peano4.api.datamodel.DoF.DoF.get_logical_type_name(), get_name(), peano4.api.solversteps.Step.Step.get_observer_class_name(), dastgen2.attributes.Enumeration.Enumeration.get_to_string(), get_type(), get_value(), and exaparty.api.particle.Particle.Particle.readme_descriptor().

◆ symbol_map

◆ value

int exahype2.api.dslhype2.Expressions.Variable.value = 0:

Definition at line 214 of file Expressions.py.


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