Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends
MatrixType Class Reference

#include <general.h>

List of all members.

Public Types

enum  {
  US = 0, UT = Valid + Upper + Square, LT = Valid + Lower + Square, Rt = Valid,
  Sq = Valid + Square, Sm = Valid + Symmetric + Square, Sk = Valid + Skew + Square, Dg,
  Id, RV = Valid, CV = Valid, BM = Valid + Band + Square,
  UB = Valid + Band + Upper + Square, LB = Valid + Band + Lower + Square, SB = Valid + Band + Symmetric + Square, KB = Valid + Band + Skew + Square,
  Ct = Valid + LUDeco + Square, BC = Valid + Band + LUDeco + Square, Mask = ~Square
}
enum  Attribute {
  Valid = 1, Diagonal = 2, Symmetric = 4, Band = 8,
  Lower = 16, Upper = 32, Square = 64, Skew = 128,
  LUDeco = 256, Ones = 512
}

Public Member Functions

MatrixType AddEqualEl () const
 < add constant to matrix
bool CannotConvert () const
MatrixType i () const
 type of inverse
bool is_band () const
bool is_diagonal () const
bool is_symmetric () const
MatrixType KP (const MatrixType &) const
 MatrixType ()
 MatrixType (int i)
 MatrixType (int i, bool dlok)
 MatrixType (const MatrixType &mt)
MatrixType MultRHS () const
 type for rhs of multiply
GeneralMatrixNew () const
 new matrix of given type
GeneralMatrixNew (int, int, BaseMatrix *) const
 new matrix of given type
bool operator! () const
bool operator!= (MatrixType t) const
MatrixType operator& (const MatrixType &mt) const
MatrixType operator* (const MatrixType &) const
int operator+ () const
MatrixType operator+ (MatrixType mt) const
bool operator< (MatrixType mt) const
void operator= (const MatrixType &mt)
bool operator== (MatrixType t) const
bool operator>= (MatrixType mt) const
MatrixType operator| (const MatrixType &mt) const
void SetDataLossOK ()
MatrixType SP (const MatrixType &) const
MatrixType ssub () const
 < type of sym submatrix
MatrixType sub () const
 < type of submatrix
MatrixType t () const
 type of transpose
const char * value () const
 type as char string
const char * Value () const

Static Public Member Functions

static int nTypes ()

Public Attributes

int attribute
bool DataLossOK

Friends

bool Compare (const MatrixType &, MatrixType &)
 compare and check conversion
bool Rectangular (MatrixType a, MatrixType b, MatrixType c)

Detailed Description

Find the type of a matrix resulting from matrix operations. Also identify what conversions are permissible. This class must be updated when new matrix types are added.

Definition at line 85 of file general.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
US 
UT 
LT 
Rt 
Sq 
Sm 
Sk 
Dg 
Id 
RV 
CV 
BM 
UB 
LB 
SB 
KB 
Ct 
BC 
Mask 

Definition at line 99 of file general.h.

Enumerator:
Valid 
Diagonal 
Symmetric 
Band 
Lower 
Upper 
Square 
Skew 
LUDeco 
Ones 

Definition at line 88 of file general.h.


Constructor & Destructor Documentation

MatrixType::MatrixType ( ) [inline]

Definition at line 130 of file general.h.

MatrixType::MatrixType ( int  i) [inline]

Definition at line 131 of file general.h.

MatrixType::MatrixType ( int  i,
bool  dlok 
) [inline]

Definition at line 132 of file general.h.

MatrixType::MatrixType ( const MatrixType mt) [inline]

Definition at line 133 of file general.h.


Member Function Documentation

MatrixType MatrixType::AddEqualEl ( ) const [inline]

< add constant to matrix

Definition at line 159 of file general.h.

bool MatrixType::CannotConvert ( ) const [inline]

Definition at line 177 of file general.h.

type of inverse

Definition at line 547 of file NewMatExhaustive.cpp.

bool MatrixType::is_band ( ) const [inline]

Definition at line 174 of file general.h.

bool MatrixType::is_diagonal ( ) const [inline]

Definition at line 175 of file general.h.

bool MatrixType::is_symmetric ( ) const [inline]

Definition at line 176 of file general.h.

MatrixType MatrixType::KP ( const MatrixType mt) const

Definition at line 532 of file NewMatExhaustive.cpp.

type for rhs of multiply

Definition at line 565 of file NewMatExhaustive.cpp.

new matrix of given type

GeneralMatrix * MatrixType::New ( int  nr,
int  nc,
BaseMatrix bm 
) const

new matrix of given type

Definition at line 611 of file NewMatExhaustive.cpp.

static int MatrixType::nTypes ( ) [inline, static]

Definition at line 123 of file general.h.

bool MatrixType::operator! ( ) const [inline]

Definition at line 156 of file general.h.

bool MatrixType::operator!= ( MatrixType  t) const [inline]

Definition at line 154 of file general.h.

MatrixType MatrixType::operator& ( const MatrixType mt) const [inline]

Definition at line 146 of file general.h.

MatrixType MatrixType::operator* ( const MatrixType mt) const

Definition at line 502 of file NewMatExhaustive.cpp.

int MatrixType::operator+ ( ) const [inline]

Definition at line 138 of file general.h.

MatrixType MatrixType::operator+ ( MatrixType  mt) const [inline]

Definition at line 139 of file general.h.

bool MatrixType::operator< ( MatrixType  mt) const [inline]

Definition at line 150 of file general.h.

void MatrixType::operator= ( const MatrixType mt) [inline]

Definition at line 135 of file general.h.

bool MatrixType::operator== ( MatrixType  t) const [inline]

Definition at line 152 of file general.h.

bool MatrixType::operator>= ( MatrixType  mt) const [inline]

Definition at line 148 of file general.h.

MatrixType MatrixType::operator| ( const MatrixType mt) const [inline]

Definition at line 144 of file general.h.

void MatrixType::SetDataLossOK ( ) [inline]

Definition at line 137 of file general.h.

MatrixType MatrixType::SP ( const MatrixType mt) const

Definition at line 510 of file NewMatExhaustive.cpp.

MatrixType MatrixType::ssub ( ) const [inline]

< type of sym submatrix

Definition at line 164 of file general.h.

MatrixType MatrixType::sub ( ) const [inline]

< type of submatrix

Definition at line 162 of file general.h.

type of transpose

Definition at line 555 of file NewMatExhaustive.cpp.

const char * MatrixType::value ( ) const

type as char string

Definition at line 581 of file NewMatExhaustive.cpp.

const char* MatrixType::Value ( ) const [inline]

Definition at line 170 of file general.h.


Friends And Related Function Documentation

bool Compare ( const MatrixType source,
MatrixType destination 
) [friend]

compare and check conversion

Definition at line 1648 of file NewMatExhaustive.cpp.

bool Rectangular ( MatrixType  a,
MatrixType  b,
MatrixType  c 
) [friend]

Definition at line 573 of file NewMatExhaustive.cpp.


Member Data Documentation

Definition at line 126 of file general.h.

Definition at line 127 of file general.h.


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


lo
Author(s): U. Klank
autogenerated on Mon Oct 6 2014 10:44:15