mpacts.core. expression_cpp

In order to be able to use this module import it like this:

import mpacts.core.expression_cpp
#or assign it to a shorter name
import mpacts.core.expression_cpp as exp

Addition

class mpacts.core.expression_cpp.Addition

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Addition
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Addition(name, parent, **kwargs)

ArrayValue

class mpacts.core.expression_cpp.ArrayValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Array value expression
Has no default location.
  • Optional keywords:
    • value (default value = None) — array contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
ArrayValue(name, parent, **kwargs)

Assign

class mpacts.core.expression_cpp.Assign

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Assign
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Assign(name, parent, **kwargs)

CurrentIndex

class mpacts.core.expression_cpp.CurrentIndex

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

CurrentIndex
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
CurrentIndex(name, parent, **kwargs)

Division

class mpacts.core.expression_cpp.Division

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Division
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Division(name, parent, **kwargs)

Expression

class mpacts.core.expression_cpp.Expression

Bases: mpacts.core.baseobject.BaseObject

Abstract type of all expressions

Raises an exception This class cannot be instantiated from Python

Expression(name, parent, **kwargs)
i((Expression)arg1) → Expression
perform((Expression)arg1, (int)arg2) → Expression

ExpressionCommand

class mpacts.core.expression_cpp.ExpressionCommand

Bases: mpacts.core.command.Command, mpacts.core.baseobject.BaseObject

Command that will perform an expression for each element of an array/array element
Has no default location.
  • Required keywords:
    • expression — The expression to be evaluated
  • Optional keywords:
    • gate (default value = ET::ChildProperty const*) — Can decide to (temporarily) not execute the command in a CommandList. (Default is ExecuteAlways)
    • predicate (default value = None) — Predicate that will decide whether this command is executed for a specific particle, when absent the command is executed for every particle.
object __init__(tuple args, dict kwds) :
args: name, parent kwds: expression, [gate, predicate]
ExpressionCommand(name, parent, **kwargs)

GetItem

class mpacts.core.expression_cpp.GetItem

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

GetItem
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
GetItem(name, parent, **kwargs)

IndexValue

class mpacts.core.expression_cpp.IndexValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

index value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
IndexValue(name, parent, **kwargs)

IntValue

class mpacts.core.expression_cpp.IntValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

int value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
IntValue(name, parent, **kwargs)

LineIndexValue

class mpacts.core.expression_cpp.LineIndexValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

LineIndex value expression
Has no default location.
  • Optional keywords:
    • value (default value = ( 0, 0 )) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
LineIndexValue(name, parent, **kwargs)

Multiplication

class mpacts.core.expression_cpp.Multiplication

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Multiplication
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Multiplication(name, parent, **kwargs)

Negate

class mpacts.core.expression_cpp.Negate

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Negation
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Negate(name, parent, **kwargs)

PointValue

class mpacts.core.expression_cpp.PointValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Point value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0 0 0) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
PointValue(name, parent, **kwargs)

Power

class mpacts.core.expression_cpp.Power

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Power
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Power(name, parent, **kwargs)

QuadIndexValue

class mpacts.core.expression_cpp.QuadIndexValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

QuadIndex value expression
Has no default location.
  • Optional keywords:
    • value (default value = ( 0, 0, 0, 0 )) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
QuadIndexValue(name, parent, **kwargs)

QuaternionValue

class mpacts.core.expression_cpp.QuaternionValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Quaternion value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0 + 0i + 0j + 0k ) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
QuaternionValue(name, parent, **kwargs)

Round

class mpacts.core.expression_cpp.Round

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Rounding
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Round(name, parent, **kwargs)

ScalarValue

class mpacts.core.expression_cpp.ScalarValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Scalar value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
ScalarValue(name, parent, **kwargs)

Sign

class mpacts.core.expression_cpp.Sign

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Sign
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Sign(name, parent, **kwargs)

Substract

class mpacts.core.expression_cpp.Substract

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Substraction
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
Substract(name, parent, **kwargs)

TriangleIndexValue

class mpacts.core.expression_cpp.TriangleIndexValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

TriangleIndex value expression
Has no default location.
  • Optional keywords:
    • value (default value = ( 0, 0, 0 )) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
TriangleIndexValue(name, parent, **kwargs)

VectorValue

class mpacts.core.expression_cpp.VectorValue

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

Vector value expression
Has no default location.
  • Optional keywords:
    • value (default value = 0 0 0) — Value contained by the expression
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [value]
VectorValue(name, parent, **kwargs)

cross

class mpacts.core.expression_cpp.cross

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

cross product
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
cross(name, parent, **kwargs)

dot

class mpacts.core.expression_cpp.dot

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

dot product
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = None) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
dot(name, parent, **kwargs)

exponential

class mpacts.core.expression_cpp.exponential

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

exponential
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
exponential(name, parent, **kwargs)

logarithm

class mpacts.core.expression_cpp.logarithm

Bases: mpacts.core.expression_cpp.Expression, mpacts.core.baseobject.BaseObject

natural logarithm
Has no default location.
  • Optional keywords:
    • op1 (default value = None) — First operand
    • op2 (default value = Expression) — Second operand
    • result (default value = None) — result of operation
object __init__(tuple args, dict kwds) :
args: name, parent kwds: [op1, op2, result]
logarithm(name, parent, **kwargs)