Home
 

Matrix operator

Input 1 Continuous matrix
Output Continuous matrix

Display:

Description:
This module enables two types of operation to be carried out on the continuous input matrix.

  • If the Sum total box is checked, the module enables symmetrical elements of the matrix to be added up.
    All results are in the lower triangle of the matrix
    Diagonal elements are kept untouched
  • If the Difference box is checked, the module subtracts symmetrical elements of the matrix.
    The value is always positive, and put in the direction of the strongest initial flow
    Diagonal values are set to zero
Example :

Starting with the matrix:

-

France England Spain
France

3

-

2

England

4

-

7

Spain

6

2

-

we obtain the following values:

as a sum total :

 3  -  -
 4  -  -
 8  9  -

as a difference :

 0  -  -
 4  -  5
 4  -  -

Script:

2      module untyped_list ""
3        mod_type integer "103"
3        mod_subtype integer "526"
3        mod_name string "Matrix operator"
3        mod_dads integer_list ""
4          ? integer "4"
3        is_sum boolean "T"

Samples