KlassenKlassenKlassenKlassen | | | | Operatoren

set_sub_matrixset_sub_matrixSetSubMatrixset_sub_matrixSetSubMatrixSetSubMatrix (Operator)

Name

set_sub_matrixset_sub_matrixSetSubMatrixset_sub_matrixSetSubMatrixSetSubMatrix — Setzt eine Teilmatrix in einer Matrix.

Signatur

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

Herror set_sub_matrix(const Hlong MatrixID, const Hlong MatrixSubID, const Hlong Row, const Hlong Column)

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

Herror set_sub_matrix(const HTuple& MatrixID, const HTuple& MatrixSubID, const HTuple& Row, const HTuple& Column)

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

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

void HOperatorSetX.SetSubMatrix(
[in] VARIANT MatrixID, [in] VARIANT MatrixSubID, [in] VARIANT Row, [in] VARIANT Column)

void HMatrixX.SetSubMatrix(
[in] IHMatrixX* MatrixSubID, [in] Hlong Row, [in] Hlong Column)

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

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

Beschreibung

Der Operator set_sub_matrixset_sub_matrixSetSubMatrixset_sub_matrixSetSubMatrixSetSubMatrix überschreibt einen Teil der Matrix MatrixMatrixMatrixMatrixMatrixmatrix mit der Matrix MatrixSubMatrixSubMatrixSubMatrixSubMatrixSubmatrixSub. Die Eingabematrizen sind durch die Matrix Handles MatrixIDMatrixIDMatrixIDMatrixIDMatrixIDmatrixID und MatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDmatrixSubID gegeben. Die Parameter RowRowRowRowRowrow und ColumnColumnColumnColumnColumncolumn legen die Position der oberen linken Ecke der Teilmatrix MatrixSubMatrixSubMatrixSubMatrixSubMatrixSubmatrixSub in der Matrix MatrixMatrixMatrixMatrixMatrixmatrix fest.

Beispiel:

           /  3.0  0.0  9.0  1.0  \                 /  1.0  -2.0  \
  Matrix = | -5.0  3.0  1.0  6.0  |     MatrixSub = |  7.0   2.0  |
           \ -9.0  0.0  1.0 -1.0  /                 \ -4.0   1.0  /

  Row = 0   Column = 1

                /  3.0   1.0  -2.0   1.0  \
  ->   Matrix = | -5.0   7.0   2.0   6.0  |
                \ -9.0  -4.0   1.0  -1.0  /

Achtung

set_sub_matrixset_sub_matrixSetSubMatrixset_sub_matrixSetSubMatrixSetSubMatrix verändert den Inhalt einer bereits bestehenden Matrix.

Es müssen die Bedingungen 0 <= RowRowRowRowRowrow < Größe der Matrix MatrixMatrixMatrixMatrixMatrixmatrix in Zeilenrichtung, RowRowRowRowRowrow + Größe der Matrix MatrixSubMatrixSubMatrixSubMatrixSubMatrixSubmatrixSub in Zeilenrichtung <= Größe der Matrix MatrixMatrixMatrixMatrixMatrixmatrix in Zeilenrichtung, 0 <= ColumnColumnColumnColumnColumncolumn < Größe der in Spaltenrichtung und ColumnColumnColumnColumnColumncolumn + Größe der Matrix MatrixSubMatrixSubMatrixSubMatrixSubMatrixSubmatrixSub in Spaltenrichtung <= Größe der Matrix MatrixMatrixMatrixMatrixMatrixmatrix in Spaltenrichtung erfüllt sein.

Parallelisierung

Parameter

MatrixIDMatrixIDMatrixIDMatrixIDMatrixIDmatrixID (input_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix Handle der Eingabematrix.

MatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDMatrixSubIDmatrixSubID (input_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix Handle der Eingabeteilmatrix.

RowRowRowRowRowrow (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Obere Zeilenposition der Teilmatrix in der Matrix.

Defaultwert: 0

Wertevorschläge: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100

Restriktion: Row >= 0

ColumnColumnColumnColumnColumncolumn (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Linke Spaltenposition der Teilmatrix in der Matrix.

Defaultwert: 0

Wertevorschläge: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100

Restriktion: Column >= 0

Ergebnis

Sind die Parameterwerte korrekt, dann liefert set_sub_matrixset_sub_matrixSetSubMatrixset_sub_matrixSetSubMatrixSetSubMatrix den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_matrixcreate_matrixCreateMatrixcreate_matrixCreateMatrixCreateMatrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixget_full_matrixGetFullMatrixGetFullMatrix, get_value_matrixget_value_matrixGetValueMatrixget_value_matrixGetValueMatrixGetValueMatrix

Siehe auch

get_sub_matrixget_sub_matrixGetSubMatrixget_sub_matrixGetSubMatrixGetSubMatrix

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren