IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Generic Matrix interface. More...
Public Member Functions | |
ComponentType[,] | ToArray () |
Creates and returns a rectangular 2D array that contains a component-wise copy of the matrix. | |
ComponentType[][] | ToJaggedArray () |
Creates and returns a jagged 2D array that contains a component-wise copy of the matrix. | |
void | SetZero () |
Sets all components of the current matrix to 0. | |
void | Negate () |
Negates the matrix. | |
Properties | |
int | RowCount [get] |
Gets the number of rows. | |
int | ColumnCount [get] |
Gets the number of columns. | |
ComponentType | this [int i, int j] [get, set] |
Gets or set the element indexed by (i, j) in the Matrix . | |
ComponentType | Trace [get] |
Gets matrix trace (sum of diagonal terms). | |
double | NormForbenius [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements. | |
double | NormEuclidean [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements. | |
double | Norm [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements. |
Generic Matrix interface.
$A Igor Sep08 Jan09;
ComponentType [,] IG::Num::IMatrix< ComponentType >::ToArray | ( | ) |
Creates and returns a rectangular 2D array that contains a component-wise copy of the matrix.
ComponentType [][] IG::Num::IMatrix< ComponentType >::ToJaggedArray | ( | ) |
Creates and returns a jagged 2D array that contains a component-wise copy of the matrix.
void IG::Num::IMatrix< ComponentType >::SetZero | ( | ) |
Sets all components of the current matrix to 0.
void IG::Num::IMatrix< ComponentType >::Negate | ( | ) |
Negates the matrix.
int IG::Num::IMatrix< ComponentType >::RowCount [get] |
Gets the number of rows.
int IG::Num::IMatrix< ComponentType >::ColumnCount [get] |
Gets the number of columns.
ComponentType IG::Num::IMatrix< ComponentType >::this[int i, int j] [get, set] |
Gets or set the element indexed by (i, j)
in the Matrix
.
i | Row index. |
j | Column index. |
ComponentType IG::Num::IMatrix< ComponentType >::Trace [get] |
Gets matrix trace (sum of diagonal terms).
double IG::Num::IMatrix< ComponentType >::NormForbenius [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements.
double IG::Num::IMatrix< ComponentType >::NormEuclidean [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements.
double IG::Num::IMatrix< ComponentType >::Norm [get] |
Gets Forbenious (or Euclidean) norm of the matrix - square root of sum of squares of elements.