norm_matrixT_norm_matrixNormMatrixNormMatrix (Operator)

Name

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

Beschreibung

Der Operator norm_matrixnorm_matrixNormMatrixNormMatrixNormMatrix berechnet die Norm der Elemente der Matrix MatrixMatrixMatrixMatrixmatrix, die durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixID gegeben ist. Der Rückgabewert ist eine Gleitpunktzahl.

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

'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 MatrixMatrixMatrixMatrixmatrix.

'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 MatrixMatrixMatrixMatrixmatrix.

'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 MatrixMatrixMatrixMatrixmatrix.

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

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

Ausführungsinformationen

Parameter

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

Matrix Handle der Eingabematrix.

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

Typ der Norm.

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

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

ValueValueValueValuevalue (output_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Norm der Eingabematrix.

Ergebnis

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

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrix

Siehe auch

sum_matrixsum_matrixSumMatrixSumMatrixSumMatrix, mean_matrixmean_matrixMeanMatrixMeanMatrixMeanMatrix

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