Logo Search packages:      
Sourcecode: mcmcpack version File versions  Download package

Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends

SCYTHE::Matrix< T > Class Template Reference

List of all members.

Public Types

typedef col_major_iterator< ttype > col_major_iterator
typedef
const_col_major_iterator
< ttype > 
const_col_major_iterator
typedef const_matrix_iterator
< ttype > 
const_iterator
typedef
const_reverse_col_major_iterator
< ttype > 
const_reverse_col_major_iterator
typedef
const_reverse_row_major_iterator
< ttype > 
const_reverse_row_major_iterator
typedef
const_row_major_iterator
< ttype > 
const_row_major_iterator
typedef matrix_iterator< ttype > iterator
typedef
reverse_col_major_iterator
< ttype > 
reverse_col_major_iterator
typedef
reverse_row_major_iterator
< ttype > 
reverse_row_major_iterator
typedef row_major_iterator< ttype > row_major_iterator
typedef T ttype

Public Member Functions

row_major_iterator begin ()
const_row_major_iterator begin () const
col_major_iterator beginc ()
const_col_major_iterator beginc () const
void clear ()
int cols () const
bool empty () const
row_major_iterator end ()
const_row_major_iterator end () const
col_major_iterator endc ()
const_col_major_iterator endc () const
T * getArray () const
bool inRange (const int &i) const
bool inRange (const int &i, const int &j) const
bool isColVector () const
bool isDiagonal () const
bool isIdentity () const
bool isLowerTriangular () const
bool isNull () const
bool isRowVector () const
bool isScalar () const
bool isSingular () const
bool isSkewSymmetric () const
bool isSquare () const
bool isSymmetric () const
bool isUpperTriangular () const
bool isZero () const
 Matrix (const int &n, const int &m, const T *in, IN_TYPE type=NORMAL, const int &a=-1, const int &b=-1, const int &c=-1, const int &d=-1)
 Matrix (const T &e)
 Matrix (const std::string &path)
 Matrix (const Matrix< T > &m, const bool &fill=true)
 Matrix (const int &n, const int &m, const bool &fill=true, const T &fill_value=0)
template<class S >
 Matrix (const Matrix< S > &m)
int max_size () const
Matrix< T > & operator%= (const Matrix< T > &m)
Matrix< T > operator() (const all_elements &a, const int &j) const
Matrix< T > operator() (const int &i, const all_elements &a) const
T & operator() (const int &i, const int &j)
T & operator() (const int &i, const int &j) const
Matrix< T > operator() (const int &a, const int &b, const int &c, const int &d) const
Matrix< T > & operator*= (const Matrix< T > &m)
Matrix< T > & operator+= (const Matrix< T > &m)
Matrix< T > & operator-= (const Matrix< T > &m)
Matrix< T > & operator/= (const Matrix< T > &m)
Matrix< T > & operator= (const Matrix< T > &m)
template<class S >
Matrix< T > & operator= (const Matrix< S > &m)
T & operator[] (const int &i)
T & operator[] (const int &i) const
Matrix< T > & operator^= (const int &e)
const_reverse_row_major_iterator rbegin () const
reverse_row_major_iterator rbegin ()
const_reverse_col_major_iterator rbeginc () const
reverse_col_major_iterator rbeginc ()
const_reverse_row_major_iterator rend () const
reverse_row_major_iterator rend ()
const_reverse_col_major_iterator rendc () const
reverse_col_major_iterator rendc ()
void resize (const int &rows, const int &cols, const bool &fill=true)
int rows () const
const_reverse_row_major_iterator rvec (const int &n) const
reverse_row_major_iterator rvec (const int &n)
const_reverse_col_major_iterator rvecc (const int &n) const
reverse_col_major_iterator rvecc (const int &n)
void save (const std::string &path, const char &flag= 'n', const bool &header=0, const int &prec=5, const int &width=0) const
int size () const
void swap (Matrix< T > &M)
std::string toString (const unsigned int &prec=5, const unsigned int &width=0, const bool &dim=false, const bool &internal=false) const
row_major_iterator vec (const int &n)
const_row_major_iterator vec (const int &n) const
col_major_iterator vecc (const int &n)
const_col_major_iterator vecc (const int &n) const

Private Member Functions

void grow (const int &s, const bool &fill=true)
int ijIndex (const int &i, const int &j) const
void resize (const int &s, const bool &fill=true)
void resize2Match (const Matrix< T > &m)
void shrink (const bool &fill=true)

Private Attributes

int alloc_
int cols_
T * data_
int rows_
int size_

Friends

class col_major_iterator< ttype >
class const_col_major_iterator< ttype >
class const_matrix_iterator< ttype >
class const_reverse_col_major_iterator< ttype >
class const_reverse_row_major_iterator< ttype >
class const_row_major_iterator< ttype >
class matrix_iterator< ttype >
class reverse_col_major_iterator< ttype >
class reverse_row_major_iterator< ttype >
class row_major_iterator< ttype >

Detailed Description

template<class T>
class SCYTHE::Matrix< T >

Definition at line 56 of file matrix.h.


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

Generated by  Doxygen 1.6.0   Back to index