IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Generic matrix class. More...
Public Member Functions | |
Matrix_OldNumerics (int dim1, int dim2, ComponentType comp) | |
Matrix_OldNumerics (ComponentType[,] array) | |
void | Init (int dim1, int dim2) |
Initializes a Matrix with dimendion length. More... | |
void | Init (int dim1, int dim2, ComponentType comp) |
Initializes a Matrix with dimendion length and sets all vec to comp. More... | |
void | Init (ComponentType[,] array) |
Initializes a Matrix with dimendion length and sets all vec to comp. More... | |
void | Init (Matrix_OldNumerics< ComponentType > m) |
Initializes a Matrix with dimendion length and sets all vec to comp. More... | |
override string | ToString () |
Redefinition of Tostring(), converts a Matrix to string representation. More... | |
virtual string | ToString (bool multiline) |
Converts a matrix to string representation. More... | |
abstract ComponentType | Add (ComponentType a, ComponentType b) |
abstract ComponentType | Subtract (ComponentType a, ComponentType b) |
abstract ComponentType | Multiply (ComponentType a, ComponentType b) |
abstract ComponentType | Divide (ComponentType a, ComponentType b) |
abstract ComponentType | Negative (ComponentType a) |
abstract ComponentType | Inverse (ComponentType a) |
abstract ComponentType | Conjugate (ComponentType a) |
void | Add (Matrix_OldNumerics< ComponentType > a) |
Matrix addition. More... | |
void | Subtract (Matrix_OldNumerics< ComponentType > a) |
Matrix subtraction. More... | |
void | Multiply (ComponentType scalar) |
Multiplication of a matrix by a scalar. More... | |
Static Public Member Functions | |
static ComponentType[,] | Copy (Matrix_OldNumerics< ComponentType > m) |
Protected Member Functions | |
Matrix_OldNumerics () | |
Protected Attributes | |
int | _dim1 |
ComponentType[,] | _tab |
Properties | |
int | Dimension1 [get] |
Returns the first Matrix dimension (number of rows). More... | |
int | Dimension2 [get] |
Returns the second Matrix dimension (number of columns). More... | |
int | d1 [get] |
Returns the first Matrix dimension (number of rows). More... | |
int | d2 [get] |
Returns the second Matrix dimension (number of columns). More... | |
virtual ComponentType | this[int ind1, int ind2] [get, set] |
Gets or sets a specific Matrix componene. More... | |
abstract ComponentType | Zero [get] |
Private Attributes | |
int | _dim2 |
Generic matrix class.
ComponentType | Type of matrix vec. |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Initializes a Matrix with dimendion length.
length | Matrix dimension. |
|
inline |
Initializes a Matrix with dimendion length and sets all vec to comp.
length | Matrix dimension. |
|
inline |
Initializes a Matrix with dimendion length and sets all vec to comp.
length | Matrix dimension. |
|
inline |
Initializes a Matrix with dimendion length and sets all vec to comp.
length | Matrix dimension. |
References IG.Old.Matrix_OldNumerics< ComponentType >.d1, and IG.Old.Matrix_OldNumerics< ComponentType >.d2.
|
inlinestatic |
|
inline |
Redefinition of Tostring(), converts a Matrix to string representation.
|
inlinevirtual |
Converts a matrix to string representation.
multiline | If true then a multi-line representation is generated. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Matrix addition.
References IG.Old.Matrix_OldNumerics< ComponentType >.d1, and IG.Old.Matrix_OldNumerics< ComponentType >.d2.
|
inline |
Matrix subtraction.
References IG.Old.Matrix_OldNumerics< ComponentType >.d1, and IG.Old.Matrix_OldNumerics< ComponentType >.d2.
|
inline |
Multiplication of a matrix by a scalar.
|
protected |
|
private |
|
protected |
|
get |
Returns the first Matrix dimension (number of rows).
|
get |
Returns the second Matrix dimension (number of columns).
|
get |
Returns the first Matrix dimension (number of rows).
Referenced by IG.Old.Matrix_OldNumerics< ComponentType >.Add(), IG.Old.Matrix_OldNumerics< ComponentType >.Copy(), IG.Old.Matrix_OldNumerics< ComponentType >.Init(), and IG.Old.Matrix_OldNumerics< ComponentType >.Subtract().
|
get |
Returns the second Matrix dimension (number of columns).
Referenced by IG.Old.Matrix_OldNumerics< ComponentType >.Add(), IG.Old.Matrix_OldNumerics< ComponentType >.Copy(), IG.Old.Matrix_OldNumerics< ComponentType >.Init(), and IG.Old.Matrix_OldNumerics< ComponentType >.Subtract().
|
getset |
Gets or sets a specific Matrix componene.
ind | Component index running from 0 to l-1. |
|
get |