max_matrix T_max_matrix MaxMatrix MaxMatrix max_matrix (Operator)
Name
max_matrix T_max_matrix MaxMatrix MaxMatrix max_matrix — Returns the elementwise maximum of a matrix.
Signature
Description
The operator max_matrix max_matrix MaxMatrix MaxMatrix MaxMatrix max_matrix returns the maximum values of the
elements of the Matrix defined by the matrix handle
MatrixID MatrixID MatrixID MatrixID matrixID matrix_id . A new matrix MatrixMax is generated
with the result and the matrix handle MatrixMaxID MatrixMaxID MatrixMaxID MatrixMaxID matrixMaxID matrix_max_id of this
matrix is returned. Access to the elements of the matrix is
possible e.g., with the operator get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix .
The type of maximum determination of the matrix can be selected via
the parameter MaxType MaxType MaxType MaxType maxType max_type :
'columns' "columns" "columns" "columns" "columns" "columns" :
The maximum is returned for
each column of the Matrix separately. The resulting
matrix MatrixMax has one row and the identical number of
columns as the input matrix.
Example:
MaxType MaxType MaxType MaxType maxType max_type = 'columns' "columns" "columns" "columns" "columns" "columns"
'rows' "rows" "rows" "rows" "rows" "rows" :
The maximum is returned for
each row of the Matrix separately. The resulting matrix
MatrixMax has the identical number of rows as the input
matrix and one column.
Example:
MaxType MaxType MaxType MaxType maxType max_type = 'rows' "rows" "rows" "rows" "rows" "rows"
'full' "full" "full" "full" "full" "full" :
The maximum is returned using
all elements of the Matrix. The resulting matrix
MatrixMax has one row and one column.
Example:
MaxType MaxType MaxType MaxType maxType max_type = 'full' "full" "full" "full" "full" "full"
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
Parameters
MatrixID MatrixID MatrixID MatrixID matrixID matrix_id (input_control) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the input matrix.
MaxType MaxType MaxType MaxType maxType max_type (input_control) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Type of maximum determination.
Default value:
'columns'
"columns"
"columns"
"columns"
"columns"
"columns"
List of values: 'columns' "columns" "columns" "columns" "columns" "columns" , 'full' "full" "full" "full" "full" "full" , 'rows' "rows" "rows" "rows" "rows" "rows"
MatrixMaxID MatrixMaxID MatrixMaxID MatrixMaxID matrixMaxID matrix_max_id (output_control) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle with the maximum values of the input
matrix.
Result
If the parameters are valid, the operator max_matrix max_matrix MaxMatrix MaxMatrix MaxMatrix max_matrix returns
the value TRUE. If necessary, an exception is raised.
Possible Predecessors
create_matrix create_matrix CreateMatrix CreateMatrix CreateMatrix create_matrix
Possible Successors
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix ,
get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix GetValueMatrix get_value_matrix
See also
min_matrix min_matrix MinMatrix MinMatrix MinMatrix min_matrix
Module
Foundation