|
Peano
|


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 = {} |
Definition at line 161 of file Expressions.py.
| exahype2.api.dslhype2.Expressions.Variable.__init__ | ( | self, | |
| Name | name ) |
Definition at line 164 of file Expressions.py.
| 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().

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().

| 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().

| 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().

| 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().

| Variable exahype2.api.dslhype2.Expressions.Variable.convert_indices_to_integers | ( | self | ) |
Definition at line 188 of file Expressions.py.
References assert, get_value(), convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, and name.

| Variable exahype2.api.dslhype2.Expressions.Variable.convert_integers_to_indices | ( | self | ) |
Definition at line 181 of file Expressions.py.
References assert, get_value(), convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, and name.

| Name exahype2.api.dslhype2.Expressions.Variable.get_name | ( | self | ) |
Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.
Definition at line 167 of file Expressions.py.
References convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, and name.
| Type exahype2.api.dslhype2.Expressions.Variable.get_type | ( | self | ) |
Reimplemented from exahype2.api.dslhype2.Expressions.Expression.
Definition at line 173 of file Expressions.py.
References get_type(), convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, and name.
Referenced by get_type().


| Expression exahype2.api.dslhype2.Expressions.Variable.get_value | ( | self | ) |
Definition at line 170 of file Expressions.py.
References convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, and name.
Referenced by convert_indices_to_integers(), convert_integers_to_indices(), and 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().

| 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.
| 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().
|
static |
Definition at line 162 of file Expressions.py.
Referenced by MLIRPrinter.MLIRPrinter.generate_affine_expression(), MLIRPrinter.MLIRPrinter.print_array_allocation(), MLIRPrinter.MLIRPrinter.print_assignment(), MLIRPrinter.MLIRPrinter.print_construction(), MLIRPrinter.MLIRPrinter.print_data_block_construction_from_external(), MLIRPrinter.MLIRPrinter.print_data_block_construction_from_function_call(), MLIRPrinter.MLIRPrinter.print_data_block_construction_from_operation(), MLIRPrinter.MLIRPrinter.print_element_index(), MLIRPrinter.MLIRPrinter.print_for(), MLIRPrinter.MLIRPrinter.print_function_definition(), MLIRPrinter.MLIRPrinter.print_memory_allocation(), MLIRPrinter.MLIRPrinter.print_subscript(), and MLIRPrinter.MLIRPrinter.print_variable().
| int exahype2.api.dslhype2.Expressions.Variable.value = 0: |
Definition at line 214 of file Expressions.py.