get_value_matrix T_get_value_matrix GetValueMatrix GetValueMatrix get_value_matrix (Operator)
Name
get_value_matrix T_get_value_matrix GetValueMatrix GetValueMatrix get_value_matrix
— Return one ore more elements of a matrix.
Signature
def get_value_matrix (matrix_id : HHandle, row : MaybeSequence[int], column : MaybeSequence[int]) -> Sequence[float]
def get_value_matrix_s (matrix_id : HHandle, row : MaybeSequence[int], column : MaybeSequence[int]) -> float
Description
The operator get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix get_value_matrix
returns the values of one ore
more elements of the Matrix
as a tuple of floating point
numbers. The Matrix
is given by the matrix handle
MatrixID MatrixID MatrixID matrixID matrix_id
. The row coordinates of the elements of the
Matrix
are determined by the tuple Row Row Row row row
, the
column coordinates by the tuple Column Column Column column column
.
Example:
Row Row Row row row
= [0,2,1] ,
Column Column Column column column
= [1,0,3]
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 matrix_id
(input_control) matrix →
HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the input matrix.
Row Row Row row row
(input_control) integer(-array) →
HTuple MaybeSequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Row numbers of matrix elements to be returned.
Default:
0
Suggested values:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
Restriction:
Row >= 0
Column Column Column column column
(input_control) integer(-array) →
HTuple MaybeSequence[int] HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Column numbers of matrix elements to be returned.
Default:
0
Suggested values:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
Restriction:
Column >= 0
Value Value Value value value
(output_control) real(-array) →
HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Values of indicated matrix elements.
Result
If the parameters are valid, the operator get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix get_value_matrix
returns the value 2 (
H_MSG_TRUE )
. If necessary, an exception is raised.
Possible Predecessors
create_matrix create_matrix CreateMatrix CreateMatrix create_matrix
Possible Successors
clear_matrix clear_matrix ClearMatrix ClearMatrix clear_matrix
See also
set_value_matrix set_value_matrix SetValueMatrix SetValueMatrix set_value_matrix
Module
Foundation