6.7.10 MapOperator

6.7.10.1 Outline of the node

Perform mathematical operations on the ObjectRef that have the same key of the two given Map<int, ObjectRef> .

6.7.10.2 Necessary file

No files are required.

6.7.10.3 Usage

When to use

This node is used to perform mathematical operations on the ObjectRef that have the same key of the two given Map<int, ObjectRef> . The data type of the ObjectRef should be Float , Complex , Vector<float> , Vector<complex<float> > , Matrix<float> , or Matrix<complex<float> > . The operation will be addition, subtraction, multiplication, division, equal, maximum, minimum, or concatinate. Note that the data type and the size of the ObjectRef of the two Map<int, ObjectRef> for the input must be the same in order to perform the calculation.

6.7.10.4 Input-output and property of the node

Input

INPUT1

: Map$<$ int , Float $>$, Map$<$ int , Complex $>$, Map$<$ int , Vector<float> $>$, Map$<$ int , Vector<complex<float> > $>$, Map$<$ int , Matrix<float> $>$, Map$<$ int or Matrix<complex<float> > $>$ of Map<int, ObjectRef> Type.

INPUT2

: Map$<$ int , Float $>$, Map$<$ int , Complex $>$, Map$<$ int , Vector<float> $>$, Map$<$ int , Vector<complex<float> > $>$, Map$<$ int , Matrix<float> $>$ or Map$<$ int , Matrix<complex<float> > $>$ of Map<int, ObjectRef> Type.

Output

OUTPUT

: Map$<$ int , Float $>$, Map$<$ int , Complex $>$, Map$<$ int , Vector<float> $>$, Map$<$ int , Vector<complex<float> > $>$, Map$<$ int , Matrix<float> $>$, Map$<$ int or Map$<$ int , bool $>$ Matrix<complex<float> > $>$ of Map<int, ObjectRef> Type.

Parameter

Table 6.97: Parameter list of MapOperator 

Parameter name

Type

Default value

Unit

Description

OPERATION_TYPE

string 

Add

 

Operation type to perform on the ObjectRef of the two given Map<int, ObjectRef> . Select one from Add, Sub, Mul, Div, Equal, Max, Min, or Concate. Perform addition, subtraction, multiplication, division, equality test, maximum, minimum, and concatenation, respectively.

DEBUG

bool 

false

 

Enable or disable to output the conversion status to standard output.

OPERATION_TYPE

: string  type. The operation type to perform on the ObjectRef of the two given Map<int, ObjectRef> . Select one from Add, Sub, Mul, Div, Equal, Max, Min, or Concate. Add performs Addition, Sub performs subtraction, Mul performs multiplication, Div performs division, Equal checks equality, Max takes the greater value, Min takes the smaller value, and Concate does concatenation on or between the two ObjectRef . The default value is Add.

DEBUG

: bool  type. Setting the value to true outputs the conversion status to the standard output. The default value is false.

6.7.10.5 Details of the node

Table 6.98: operation and input-output type

Input type

Operation

Output type

Map$<$ int , Float $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Float $>$

Map$<$ int , Complex $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Complex $>$

Map$<$ int , Vector<float> $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Vector<float> $>$

Map$<$ int , Vector<complex<float> > $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Vector<complex<float> > $>$

Map$<$ int , Matrix<float> $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Matrix<float> $>$

Map$<$ int , Matrix<complex<float> > $>$

Add, Sub, Mul, Div, Max or Min

Map$<$ int , Matrix<complex<float> > $>$

Map$<$ int , Float $>$ ,

   

Map$<$ int , Complex $>$ ,

   

Map$<$ int , Vector<float> $>$ ,

Equal

Map$<$ int , bool $>$

Map$<$ int , Vector<complex<float> > $>$ ,

   

Map$<$ int , Matrix<float> $>$ ,

   

Map$<$ int , Matrix<complex<float> > $>$

   

Map$<$ int , Float $>$ ,

   

Map$<$ int , Complex $>$ ,

   

Map$<$ int , Vector<float> $>$ ,

Concate

same as input type, but size is different

Map$<$ int , Vector<complex<float> > $>$ ,

   

Map$<$ int , Matrix<float> $>$ ,

   

Map$<$ int , Matrix<complex<float> > $>$