set_value_matrix — 设置矩阵的一个或多个元素。
算子 set_value_matrix sets the
values of the elements of the input Matrix at the
positions (Row,Column) to the values specified by
Value. The values can be a tuple of floating point or
integer numbers. Integer numbers are converted to floating point
numbers automatically. The number of values of Value must
match the number of elements of Row and Column. In
addition, the conditions 0 Row < size of
Matrix in the row direction and
0 Column < size of Matrix in the column
direction must be satisfied. The Matrix is defined by the
matrix handle MatrixID。
示例:
Row = [0,2,1],
Column = [1,0,3],
Value = [1,-9,6]
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
MatrixID (输入控制,状态被修改) matrix → (handle)
输入矩阵的矩阵句柄。
Row (输入控制) integer(-array) → (integer)
Row numbers of the matrix elements to be modified.
默认值: 0
建议值: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
Row >= 0
Column (输入控制) integer(-array) → (integer)
Column numbers of the matrix elements to be modified.
默认值: 0
建议值: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
Column >= 0
Value (输入控制) number(-array) → (real / integer)
Values to be set in the indicated matrix elements.
默认值: 0
建议值: 0, 1, -1
如果参数有效,算子 set_value_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
基础