Creating the Computation Class
- Create a class with a method to contain the matrix calculation.
- In the method, add two arguments arg_matrix1 and arg_matrix2 of type mat[cont] and direction In for the matrices to be added.
Add another argument arg_OutMatrix of the same type, and with the direction InOut, for the result matrix.
Since you cannot write to the argument, you need an auxiliary matrix.
- Use the
button to create a matrix of type cont. In the Properties editor, accept the preset values for the Dimension and activate the Reference option.
The third argument will be assigned to the auxiliary matrix via the Get port.
- Specify the Matrix Addition.