max_matrixT_max_matrixMaxMatrixMaxMatrixmax_matrix (Operator)

Name

max_matrixT_max_matrixMaxMatrixMaxMatrixmax_matrix — 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)

def max_matrix(matrix_id: HHandle, max_type: str) -> HHandle

Beschreibung

Der Operator max_matrixmax_matrixMaxMatrixMaxMatrixMaxMatrixmax_matrix gibt den Maximalwert der Elemente der Eingabematrix Matrix zurück. Die Eingabematrix ist durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id definiert. Es wird eine neue Matrix MatrixMax mit dem Ergebnis generiert und das Matrix Handle MatrixMaxIDMatrixMaxIDMatrixMaxIDMatrixMaxIDmatrixMaxIDmatrix_max_id dieser Matrix zurückgegeben. Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix möglich.

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

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

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

Beispiel:

MaxTypeMaxTypeMaxTypeMaxTypemaxTypemax_type = 'columns'"columns""columns""columns""columns""columns"

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

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

Beispiel:

MaxTypeMaxTypeMaxTypeMaxTypemaxTypemax_type = 'rows'"rows""rows""rows""rows""rows"

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

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

Beispiel:

MaxTypeMaxTypeMaxTypeMaxTypemaxTypemax_type = 'full'"full""full""full""full""full"

Ausführungsinformationen

Parameter

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

Matrix Handle der Eingabematrix.

MaxTypeMaxTypeMaxTypeMaxTypemaxTypemax_type (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Art der Maximalwertbildung.

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

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

MatrixMaxIDMatrixMaxIDMatrixMaxIDMatrixMaxIDmatrixMaxIDmatrix_max_id (output_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle mit den Maximalwerten der Eingabematrix.

Ergebnis

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

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix

Siehe auch

min_matrixmin_matrixMinMatrixMinMatrixMinMatrixmin_matrix

Modul

Foundation