KlassenKlassenKlassenKlassen | | | | Operatoren

norm_matrixnorm_matrixNormMatrixnorm_matrixNormMatrixNormMatrix (Operator)

Name

norm_matrixnorm_matrixNormMatrixnorm_matrixNormMatrixNormMatrix — Normiert eine Matrix.

Signatur

norm_matrix( : : MatrixID, NormType : Value)

Herror norm_matrix(const Hlong MatrixID, const char* NormType, double* Value)

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

Herror norm_matrix(const HTuple& MatrixID, const HTuple& NormType, double* Value)

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

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

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

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

void HOperatorSetX.NormMatrix(
[in] VARIANT MatrixID, [in] VARIANT NormType, [out] VARIANT* Value)

double HMatrixX.NormMatrix([in] BSTR NormType)

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

double HMatrix.NormMatrix(string normType)

Beschreibung

Der Operator norm_matrixnorm_matrixNormMatrixnorm_matrixNormMatrixNormMatrix berechnet die Norm der Elemente der Matrix MatrixMatrixMatrixMatrixMatrixmatrix, die durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDMatrixIDmatrixID gegeben ist. Der Rückgabewert ist eine Gleitpunktzahl.

Der Typ der Normierung der Matrix kann über den Parameter NormTypeNormTypeNormTypeNormTypeNormTypenormType 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))

  

Parallelisierung

Parameter

MatrixIDMatrixIDMatrixIDMatrixIDMatrixIDmatrixID (input_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix Handle der Eingabematrix.

NormTypeNormTypeNormTypeNormTypeNormTypenormType (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (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 HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Norm der Eingabematrix.

Ergebnis

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

Vorgänger

create_matrixcreate_matrixCreateMatrixcreate_matrixCreateMatrixCreateMatrix

Siehe auch

sum_matrixsum_matrixSumMatrixsum_matrixSumMatrixSumMatrix, mean_matrixmean_matrixMeanMatrixmean_matrixMeanMatrixMeanMatrix

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


KlassenKlassenKlassenKlassen | | | | Operatoren