norm_matrixT_norm_matrixNormMatrixNormMatrixnorm_matrix (Operator)

Name

norm_matrixT_norm_matrixNormMatrixNormMatrixnorm_matrix — Normiert eine Matrix.

Signatur

norm_matrix( : : MatrixID, NormType : Value)

Herror T_norm_matrix(const Htuple MatrixID, const Htuple NormType, Htuple* Value)

void NormMatrix(const HTuple& MatrixID, const HTuple& NormType, HTuple* Value)

double HMatrix::NormMatrix(const HString& NormType) const

double HMatrix::NormMatrix(const char* NormType) const

double HMatrix::NormMatrix(const wchar_t* NormType) const   (Nur Windows)

static void HOperatorSet.NormMatrix(HTuple matrixID, HTuple normType, out HTuple value)

double HMatrix.NormMatrix(string normType)

def norm_matrix(matrix_id: HHandle, norm_type: str) -> float

Beschreibung

Der Operator norm_matrixnorm_matrixNormMatrixNormMatrixNormMatrixnorm_matrix berechnet die Norm der Elemente der Matrix MatrixMatrixMatrixMatrixmatrixmatrix, die durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id gegeben ist. Der Rückgabewert ist eine Gleitpunktzahl.

Der Typ der Normierung der Matrix kann über den Parameter NormTypeNormTypeNormTypeNormTypenormTypenorm_type gewählt werden:

'frobenius-norm'"frobenius-norm""frobenius-norm""frobenius-norm""frobenius-norm""frobenius-norm":

Die Frobenius-Norm wird berechnet. Die Formel für die Berechnung des Rückgabewerts lautet: mit m = Anzahl der Zeilen und n = Anzahl der Spalten der Matrix MatrixMatrixMatrixMatrixmatrixmatrix.

'infinity-norm'"infinity-norm""infinity-norm""infinity-norm""infinity-norm""infinity-norm":

Die infinity Norm wird berechnet. Das Ergebnis ist der größte Wert der Summe der absoluten Werte der Elemente der Zeilen. Die Formel für die Berechnung des Rückgabewerts lautet: mit m = Anzahl der Zeilen und n = Anzahl der Spalten der Matrix MatrixMatrixMatrixMatrixmatrixmatrix.

'1-norm'"1-norm""1-norm""1-norm""1-norm""1-norm":

Die 1-Norm wird berechnet. Das Ergebnis ist der größte Wert der Summe der absoluten Werte der Elemente der Spalten. Die Formel für die Berechnung des Rückgabewerts lautet: mit m = Anzahl der Zeilen und n = Anzahl der Spalten der Matrix MatrixMatrixMatrixMatrixmatrixmatrix.

'2-norm'"2-norm""2-norm""2-norm""2-norm""2-norm":

Die 2-norm wird berechnet. Das Ergebnis ist der größte Singulärwert der MatrixMatrixMatrixMatrixmatrixmatrix. Die Formel für die Berechnung des Rückgabewerts lautet: Value = max (singular values (Matrix))

Ausführungsinformationen

Parameter

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

Matrix Handle der Eingabematrix.

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

Typ der Norm.

Defaultwert: '2-norm' "2-norm" "2-norm" "2-norm" "2-norm" "2-norm"

Werteliste: '1-norm'"1-norm""1-norm""1-norm""1-norm""1-norm", '2-norm'"2-norm""2-norm""2-norm""2-norm""2-norm", 'frobenius-norm'"frobenius-norm""frobenius-norm""frobenius-norm""frobenius-norm""frobenius-norm", 'infinity-norm'"infinity-norm""infinity-norm""infinity-norm""infinity-norm""infinity-norm"

ValueValueValueValuevaluevalue (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Norm der Eingabematrix.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert norm_matrixnorm_matrixNormMatrixNormMatrixNormMatrixnorm_matrix den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix

Siehe auch

sum_matrixsum_matrixSumMatrixSumMatrixSumMatrixsum_matrix, mean_matrixmean_matrixMeanMatrixMeanMatrixMeanMatrixmean_matrix

Literatur

David Poole: „Linear Algebra: A Modern Introduction“; Thomson; Belmont; 2006.
Gene H. Golub, Charles F. van Loan: „Matrix Computations“; The Johns Hopkins University Press; Baltimore and London; 1996.

Modul

Foundation