ArithmeticOperationEnum
Enum CDM 7.2.0An arithmetic operator that can be passed to a function
Values 6
Namespace cdm.base.math
Values
6 permitted values.
| Value | Description |
|---|---|
| Add | Addition of 2 values |
| Subtract | Subtraction of 2nd value from 1st value |
| Multiply | Multiplication of 2 values |
| Divide | Division of 1st value by 2nd value |
| Max | Maximum of 2 values |
| Min | Minimum of 2 values |
Referenced by
2 types hold an ArithmeticOperationEnum as an attribute.
Functions
Model functions that produce or consume this type. These are the CDM's own behaviour — the logic a correct implementation has to match.
| Function | Role | Description |
|---|---|---|
| VectorOperation | takes | Generates a result vector by applying the supplied arithmetic operation to each element of the supplied left and right vectors in turn. i.e. result[n] = left[n] <op> right[n], where <op> is the arithmetic operation defined by ArithmeticOperationEnum. |
| VectorScalarOperation | takes | Generates a result vector by applying the supplied arithmetic operation and scalar right value to each element of the supplied left vector in turn. i.e. result[n] = left[n] <op> right, where <op> is the arithmetic operation defined by ArithmeticOperationEnum. |
| ArithmeticOperation | takes | — |
| MapScheduleToInterestRatePriceSchedule | takes | — |
| MapInterestRatePriceSchedule | takes | — |
| FilterPrice | takes | Filter list of prices based on price type. |
Open ArithmeticOperationEnum in the Model Browser
Walk the tree and the reference graph interactively, and switch releases to see how the enumeration has changed. Free, no signup.