max_matrixT_max_matrixMaxMatrixMaxMatrix (Operator)

Name

max_matrixT_max_matrixMaxMatrixMaxMatrix — Gibt den elementweisen Maximalwert der Matrix zurück.

Signatur

max_matrix( : : MatrixID, MaxType : MatrixMaxID)

Herror T_max_matrix(const Htuple MatrixID, const Htuple MaxType, Htuple* MatrixMaxID)

void MaxMatrix(const HTuple& MatrixID, const HTuple& MaxType, HTuple* MatrixMaxID)

HMatrix HMatrix::MaxMatrix(const HString& MaxType) const

HMatrix HMatrix::MaxMatrix(const char* MaxType) const

HMatrix HMatrix::MaxMatrix(const wchar_t* MaxType) const   (Nur Windows)

static void HOperatorSet.MaxMatrix(HTuple matrixID, HTuple maxType, out HTuple matrixMaxID)

HMatrix HMatrix.MaxMatrix(string maxType)

Beschreibung

Der Operator max_matrixmax_matrixMaxMatrixMaxMatrixMaxMatrix gibt den Maximalwert der Elemente der Eingabematrix MatrixMatrixMatrixMatrixmatrix zurück. Die Eingabematrix ist durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixID definiert. Es wird eine neue Matrix MatrixMaxMatrixMaxMatrixMaxMatrixMaxmatrixMax mit dem Ergebnis generiert und das Matrix Handle MatrixMaxIDMatrixMaxIDMatrixMaxIDMatrixMaxIDmatrixMaxID dieser Matrix zurückgegeben. Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix möglich.

Die Art der Maximalwertbildung der Matrix kann mittels des Parameters MaxTypeMaxTypeMaxTypeMaxTypemaxType gewählt werden:

'columns'"columns""columns""columns""columns":

Die Maximalwertbildung erfolgt für jede Spalte der Matrix MatrixMatrixMatrixMatrixmatrix einzeln. Die Ergebnismatrix MatrixMaxMatrixMaxMatrixMaxMatrixMaxmatrixMax hat eine Zeile und die gleiche Anzahl an Spalten wie die Eingabematrix.

'rows'"rows""rows""rows""rows":

Die Maximalwertbildung erfolgt für jede Zeile der Matrix MatrixMatrixMatrixMatrixmatrix einzeln. Die Ergebnismatrix MatrixMaxMatrixMaxMatrixMaxMatrixMaxmatrixMax hat die gleiche Anzahl an Zeilen wie die Eingabematrix und eine Spalte.

'full'"full""full""full""full":

Die Maximalwertbildung erfolgt über alle Elemente der Matrix MatrixMatrixMatrixMatrixmatrix. Die Ergebnismatrix MatrixMaxMatrixMaxMatrixMaxMatrixMaxmatrixMax hat eine Zeile und eine Spalte.

Ausführungsinformationen

Parameter

MatrixIDMatrixIDMatrixIDMatrixIDmatrixID (input_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der Eingabematrix.

MaxTypeMaxTypeMaxTypeMaxTypemaxType (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Art der Maximalwertbildung.

Defaultwert: 'columns' "columns" "columns" "columns" "columns"

Werteliste: 'columns'"columns""columns""columns""columns", 'full'"full""full""full""full", 'rows'"rows""rows""rows""rows"

MatrixMaxIDMatrixMaxIDMatrixMaxIDMatrixMaxIDmatrixMaxID (output_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle mit den Maximalwerten der Eingabematrix.

Ergebnis

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

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrix

Siehe auch

min_matrixmin_matrixMinMatrixMinMatrixMinMatrix

Modul

Foundation