IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Old.Matrix_OldNumerics< ComponentType > Class Template Referenceabstract

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
 

Detailed Description

Generic matrix class.

Template Parameters
ComponentTypeType of matrix vec.

Constructor & Destructor Documentation

IG.Old.Matrix_OldNumerics< ComponentType >.Matrix_OldNumerics ( )
inlineprotected
IG.Old.Matrix_OldNumerics< ComponentType >.Matrix_OldNumerics ( int  dim1,
int  dim2,
ComponentType  comp 
)
inline
IG.Old.Matrix_OldNumerics< ComponentType >.Matrix_OldNumerics ( ComponentType  array[,])
inline

Member Function Documentation

void IG.Old.Matrix_OldNumerics< ComponentType >.Init ( int  dim1,
int  dim2 
)
inline

Initializes a Matrix with dimendion length.

Parameters
lengthMatrix dimension.
void IG.Old.Matrix_OldNumerics< ComponentType >.Init ( int  dim1,
int  dim2,
ComponentType  comp 
)
inline

Initializes a Matrix with dimendion length and sets all vec to comp.

Parameters
lengthMatrix dimension.
void IG.Old.Matrix_OldNumerics< ComponentType >.Init ( ComponentType  array[,])
inline

Initializes a Matrix with dimendion length and sets all vec to comp.

Parameters
lengthMatrix dimension.
void IG.Old.Matrix_OldNumerics< ComponentType >.Init ( Matrix_OldNumerics< ComponentType >  m)
inline

Initializes a Matrix with dimendion length and sets all vec to comp.

Parameters
lengthMatrix dimension.

References IG.Old.Matrix_OldNumerics< ComponentType >.d1, and IG.Old.Matrix_OldNumerics< ComponentType >.d2.

static ComponentType [,] IG.Old.Matrix_OldNumerics< ComponentType >.Copy ( Matrix_OldNumerics< ComponentType >  m)
inlinestatic
override string IG.Old.Matrix_OldNumerics< ComponentType >.ToString ( )
inline

Redefinition of Tostring(), converts a Matrix to string representation.

Returns
String representation of a matrix.
virtual string IG.Old.Matrix_OldNumerics< ComponentType >.ToString ( bool  multiline)
inlinevirtual

Converts a matrix to string representation.

Parameters
multilineIf true then a multi-line representation is generated.
Returns
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Add ( ComponentType  a,
ComponentType  b 
)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Subtract ( ComponentType  a,
ComponentType  b 
)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Multiply ( ComponentType  a,
ComponentType  b 
)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Divide ( ComponentType  a,
ComponentType  b 
)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Negative ( ComponentType  a)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Inverse ( ComponentType  a)
pure virtual
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Conjugate ( ComponentType  a)
pure virtual
void IG.Old.Matrix_OldNumerics< ComponentType >.Add ( Matrix_OldNumerics< ComponentType >  a)
inline
void IG.Old.Matrix_OldNumerics< ComponentType >.Subtract ( Matrix_OldNumerics< ComponentType >  a)
inline
void IG.Old.Matrix_OldNumerics< ComponentType >.Multiply ( ComponentType  scalar)
inline

Multiplication of a matrix by a scalar.

Member Data Documentation

int IG.Old.Matrix_OldNumerics< ComponentType >._dim1
protected
int IG.Old.Matrix_OldNumerics< ComponentType >._dim2
private
ComponentType [,] IG.Old.Matrix_OldNumerics< ComponentType >._tab
protected

Property Documentation

int IG.Old.Matrix_OldNumerics< ComponentType >.Dimension1
get

Returns the first Matrix dimension (number of rows).

int IG.Old.Matrix_OldNumerics< ComponentType >.Dimension2
get

Returns the second Matrix dimension (number of columns).

virtual ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.this[int ind1, int ind2]
getset

Gets or sets a specific Matrix componene.

Parameters
indComponent index running from 0 to l-1.
Returns
a referance to a component for a reference type ComponentType or its value for value types.
abstract ComponentType IG.Old.Matrix_OldNumerics< ComponentType >.Zero
get

The documentation for this class was generated from the following file: