set_sub_matrixT_set_sub_matrixSetSubMatrixSetSubMatrixset_sub_matrix (Operator)

Name

set_sub_matrixT_set_sub_matrixSetSubMatrixSetSubMatrixset_sub_matrix — Set a sub-matrix of a matrix.

Signature

set_sub_matrix( : : MatrixID, MatrixSubID, Row, Column : )

Herror T_set_sub_matrix(const Htuple MatrixID, const Htuple MatrixSubID, const Htuple Row, const Htuple Column)

void SetSubMatrix(const HTuple& MatrixID, const HTuple& MatrixSubID, const HTuple& Row, const HTuple& Column)

void HMatrix::SetSubMatrix(const HMatrix& MatrixSubID, Hlong Row, Hlong Column) const

static void HOperatorSet.SetSubMatrix(HTuple matrixID, HTuple matrixSubID, HTuple row, HTuple column)

void HMatrix.SetSubMatrix(HMatrix matrixSubID, int row, int column)

def set_sub_matrix(matrix_id: HHandle, matrix_sub_id: HHandle, row: int, column: int) -> None

Description

The operator set_sub_matrixset_sub_matrixSetSubMatrixSetSubMatrixSetSubMatrixset_sub_matrix overwrites a part of the MatrixMatrixMatrixMatrixmatrixmatrix with the matrix MatrixSubMatrixSubMatrixSubMatrixSubmatrixSubmatrix_sub. The input matrices are defined by the matrix handles MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id and MatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDmatrixSubIDmatrix_sub_id. The parameters RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn determine the position of the upper left corner of the sub-matrix MatrixSubMatrixSubMatrixSubMatrixSubmatrixSubmatrix_sub in MatrixMatrixMatrixMatrixmatrixmatrix.

Example:

Attention

The conditions 0 <= RowRowRowRowrowrow < size of matrix MatrixMatrixMatrixMatrixmatrixmatrix in the row direction, RowRowRowRowrowrow + size of matrix MatrixSubMatrixSubMatrixSubMatrixSubmatrixSubmatrix_sub in the row direction <= size of matrix MatrixMatrixMatrixMatrixmatrixmatrix in the row direction, 0 <= ColumnColumnColumnColumncolumncolumn < size of MatrixMatrixMatrixMatrixmatrixmatrix in the column direction, and ColumnColumnColumnColumncolumncolumn + size of matrix MatrixSubMatrixSubMatrixSubMatrixSubmatrixSubmatrix_sub in the columns direction <= size of MatrixMatrixMatrixMatrixmatrixmatrix in the column direction must be satisfied.

Execution Information

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters

MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (input_control, state is modified)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix handle of the input matrix.

MatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDmatrixSubIDmatrix_sub_id (input_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix handle of the input sub-matrix.

RowRowRowRowrowrow (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Upper row position of the sub-matrix in the matrix.

Default value: 0

Suggested values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100

Restriction: Row >= 0

ColumnColumnColumnColumncolumncolumn (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Left column position of the sub-matrix in the matrix.

Default value: 0

Suggested values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100

Restriction: Column >= 0

Result

If the parameters are valid, the operator set_sub_matrixset_sub_matrixSetSubMatrixSetSubMatrixSetSubMatrixset_sub_matrix returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix

Possible Successors

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix

See also

get_sub_matrixget_sub_matrixGetSubMatrixGetSubMatrixGetSubMatrixget_sub_matrix

Module

Foundation