FeResPost Web Site                     FeResPost Online User Manual

I.4.7 Operators

Five elementary operators on Result objects have been defined. Also, their corresponding assignment method have been defined. Unless otherwise specified, in the examples given below, x, y and z are Result objects. One of the two operands can be replaced by a “constant” value in most cases, but at least one of the operands must be a Result object:

By “constant” value, one means a scalar real value, a scalar complex value, a real vector (Array of three real values), a complex vector (Array of three complex elements), or a real matrix (Array of 3 × 3 real values). These arguments can be used in addition, substraction and multiplication operations. Note that no constant complex matrix is supported.

For the division operation, y can be replaced by a scalar real or complex argument, but not by a vector or a matrix. on the other hand, x can be replaced by constant scalar, vectorial or matrix, real or complex (except for the matrix).

For the exponentiation operator, the two Results must be scalar. Either x or y can be replaced by a constant real value.

One can make a few general remarks:

The support for Complex Result operators depends on the type of dyadic operation. See the sub-sections below for more information.

I.4.7.1 Addition operator
I.4.7.2 Substraction operator
I.4.7.3 Multiplication operator
I.4.7.4 Division operator
I.4.7.5 Exponent operator