max_matrix T_max_matrix MaxMatrix MaxMatrix max_matrix (算子)
名称
max_matrix T_max_matrix MaxMatrix MaxMatrix max_matrix — 返回矩阵的元素最大值。
签名
描述
算子 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.可通过算子
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.
示例:
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.
示例:
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.
示例:
MaxType MaxType MaxType MaxType maxType max_type = 'full' "full" "full" "full" "full" "full"
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
未采用并行化处理。
参数
MatrixID MatrixID MatrixID MatrixID matrixID matrix_id (输入控制) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
输入矩阵的矩阵句柄。
MaxType MaxType MaxType MaxType maxType max_type (输入控制) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Type of maximum determination.
默认值:
'columns'
"columns"
"columns"
"columns"
"columns"
"columns"
值列表:
'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 (输出控制) matrix → HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle with the maximum values of the input
matrix.
结果
如果参数有效,算子 max_matrix max_matrix MaxMatrix MaxMatrix MaxMatrix max_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
create_matrix create_matrix CreateMatrix CreateMatrix CreateMatrix create_matrix
可能的后继
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix ,
get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix GetValueMatrix get_value_matrix
另见
min_matrix min_matrix MinMatrix MinMatrix MinMatrix min_matrix
模块
基础