min_matrix — 返回矩阵的元素最小值。
min_matrix( : : MatrixID, MinType : MatrixMinID)
算子 min_matrix returns the minimum values of the
elements of the Matrix defined by the matrix handle
MatrixID. A new matrix MatrixMin is generated
with the result and the matrix handle MatrixMinID of this
matrix is returned.可通过算子
get_full_matrix 等方式访问该矩阵的元素。
The type of minimum determination of the matrix can be selected via
the parameter MinType:
The minimum is returned for
each column of the Matrix separately. The resulting
matrix MatrixMin has one row and the identical number of
columns as the input matrix.
示例:
MinType = 'columns'
The minimum is returned for
each row of the Matrix separately. The resulting matrix
MatrixMin has the identical number of rows as the input
matrix and one column.
示例:
MinType = 'rows'
/ -3.0 \
-> MatrixMin = \ -6.0 /
\[
\to \qquad \texttt{MatrixMin} =
\left[ \begin{array}{r}
-3.0
-6.0
\end{array} \right]
\]
The minimum is returned using
all elements of the Matrix. The resulting matrix
MatrixMin has one row and one column.
示例:
MinType = 'full'
MatrixID (输入控制) matrix → (handle)
输入矩阵的矩阵句柄。
MinType (输入控制) string → (string)
Type of minimum determination.
默认值: 'columns'
值列表: 'columns', 'full', 'rows'
MatrixMinID (输出控制) matrix → (handle)
Matrix handle with the minimum values of the input matrix.
如果参数有效,算子 min_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
get_full_matrix,
get_value_matrix
基础