#include <newmat.h>
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 More... | |
bool | CannotConvert () const |
bool | is_band () const |
bool | is_diagonal () const |
bool | is_symmetric () const |
MatrixType () | |
MatrixType (int i) | |
MatrixType (int i, bool dlok) | |
MatrixType (const MatrixType &mt) | |
GeneralMatrix * | New () const |
new matrix of given type More... | |
bool | operator! () const |
bool | operator!= (MatrixType t) const |
MatrixType | operator& (const MatrixType &mt) 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 | ssub () const |
< type of sym submatrix More... | |
MatrixType | sub () const |
< type of submatrix More... | |
const char * | Value () const |
MatrixType | operator* (const MatrixType &) const |
MatrixType | SP (const MatrixType &) const |
MatrixType | KP (const MatrixType &) const |
MatrixType | i () const |
type of inverse More... | |
MatrixType | t () const |
type of transpose More... | |
MatrixType | MultRHS () const |
type for rhs of multiply More... | |
GeneralMatrix * | New (int, int, BaseMatrix *) const |
new matrix of given type More... | |
const char * | value () const |
type as char string More... | |
Static Public Member Functions | |
static int | nTypes () |
Public Attributes | |
int | attribute |
bool | DataLossOK |
Friends | |
bool | Compare (const MatrixType &, MatrixType &) |
compare and check conversion More... | |
bool | Rectangular (MatrixType a, MatrixType b, MatrixType c) |
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.
anonymous enum |
|
inline |
|
inline |
MatrixType MatrixType::i | ( | ) | const |
type of inverse
Definition at line 82 of file newmat1.cpp.
MatrixType MatrixType::KP | ( | const MatrixType & | mt | ) | const |
Definition at line 67 of file newmat1.cpp.
MatrixType MatrixType::MultRHS | ( | ) | const |
type for rhs of multiply
Definition at line 100 of file newmat1.cpp.
GeneralMatrix* MatrixType::New | ( | ) | const |
new matrix of given type
GeneralMatrix * MatrixType::New | ( | int | nr, |
int | nc, | ||
BaseMatrix * | bm | ||
) | const |
new matrix of given type
Definition at line 146 of file newmat1.cpp.
|
inline |
|
inline |
MatrixType MatrixType::operator* | ( | const MatrixType & | mt | ) | const |
Definition at line 37 of file newmat1.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
MatrixType MatrixType::SP | ( | const MatrixType & | mt | ) | const |
Definition at line 45 of file newmat1.cpp.
|
inline |
|
inline |
MatrixType MatrixType::t | ( | ) | const |
type of transpose
Definition at line 90 of file newmat1.cpp.
const char * MatrixType::value | ( | ) | const |
type as char string
Definition at line 116 of file newmat1.cpp.
|
friend |
compare and check conversion
Definition at line 980 of file newmat4.cpp.
|
friend |
Definition at line 108 of file newmat1.cpp.