min_matrixT_min_matrixMinMatrixMinMatrixmin_matrix (Operator)

Name

min_matrixT_min_matrixMinMatrixMinMatrixmin_matrix — Gibt das elementweise Minimum einer Matrix zurück.

Signatur

min_matrix( : : MatrixID, MinType : MatrixMinID)

Herror T_min_matrix(const Htuple MatrixID, const Htuple MinType, Htuple* MatrixMinID)

void MinMatrix(const HTuple& MatrixID, const HTuple& MinType, HTuple* MatrixMinID)

HMatrix HMatrix::MinMatrix(const HString& MinType) const

HMatrix HMatrix::MinMatrix(const char* MinType) const

HMatrix HMatrix::MinMatrix(const wchar_t* MinType) const   (Nur Windows)

static void HOperatorSet.MinMatrix(HTuple matrixID, HTuple minType, out HTuple matrixMinID)

HMatrix HMatrix.MinMatrix(string minType)

def min_matrix(matrix_id: HHandle, min_type: str) -> HHandle

Beschreibung

Der Operator min_matrixmin_matrixMinMatrixMinMatrixMinMatrixmin_matrix gibt das Minimum der Elemente der Eingabematrix Matrix zurück. Die Eingabematrix ist durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id definiert. Es wird eine neue Matrix MatrixMin mit dem Ergebnis generiert und das Matrix Handle MatrixMinIDMatrixMinIDMatrixMinIDMatrixMinIDmatrixMinIDmatrix_min_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 Minimalwertbildung der Matrix kann mittels des Parameters MinTypeMinTypeMinTypeMinTypeminTypemin_type gewählt werden:

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

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

Beispiel:

MinTypeMinTypeMinTypeMinTypeminTypemin_type = 'columns'"columns""columns""columns""columns""columns"

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

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

Beispiel:

MinTypeMinTypeMinTypeMinTypeminTypemin_type = 'rows'"rows""rows""rows""rows""rows" / -3.0 \ -> MatrixMin = \ -6.0 / \[ \to \qquad \texttt{MatrixMin} = \left[ \begin{array}{r} -3.0
-6.0 \end{array} \right] \]

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

Die Minimalwertbildung erfolgt über alle Elemente der Matrix Matrix. Die Ergebnismatrix MatrixMin hat eine Zeile und eine Spalte.

Beispiel:

MinTypeMinTypeMinTypeMinTypeminTypemin_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.

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

Art der Minimalwertwertbildung.

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"

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

Matrix Handle mit den Minimalwerten der Eingabematrix.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert min_matrixmin_matrixMinMatrixMinMatrixMinMatrixmin_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

max_matrixmax_matrixMaxMatrixMaxMatrixMaxMatrixmax_matrix

Modul

Foundation