SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
ColumnMatrixGeneric< T > Class Template Reference

#include <ColumnMatrix.h>

Inheritance diagram for ColumnMatrixGeneric< T >:
Matrix< T > MatrixBase MatrixInterface< T > PropertyManager Persistent

Public Member Functions

 ColumnMatrixGeneric (size_type rows=0)
 
 ColumnMatrixGeneric (const ColumnMatrixGeneric &)
 
ColumnMatrixGenericoperator= (const ColumnMatrixGeneric &)
 
virtual ColumnMatrixGenericclone () const
 Make a duplicate, needed to support detach from LockingHandle. More...
 
virtual ~ColumnMatrixGeneric ()
 
virtual DenseMatrixdense ()
 Convert this matrix to the specified type. More...
 
virtual SparseRowMatrixGeneric
< T > * 
sparse ()
 
virtual ColumnMatrixGeneric< T > * column ()
 
virtual
DenseColMajMatrixGeneric< T > * 
dense_col_maj ()
 
virtual T * get_data_pointer () const
 
virtual size_type get_data_size () const
 
T & operator[] (int r) const
 
void set_data (T *d)
 
get (index_type r) const
 
void put (index_type r, T val)
 
void resize (size_type)
 
virtual void zero ()
 
virtual T get (index_type, index_type) const
 
virtual void put (index_type row, index_type col, T val)
 
virtual void add (index_type row, index_type col, T val)
 
virtual T & operator() (index_type i, index_type j)
 
virtual const T & operator() (index_type i, index_type j) const
 
virtual T min ()
 
virtual T max ()
 
virtual int compute_checksum ()
 
virtual void getRowNonzerosNoCopy (index_type r, size_type &size, index_type &stride, index_type *&cols, T *&vals)
 
virtual Matrix< T > * make_transpose () const
 
virtual void mult (const ColumnMatrix &x, ColumnMatrix &b, index_type beg=-1, index_type end=-1, int spVec=0) const
 
virtual void mult_transpose (const ColumnMatrix &x, ColumnMatrix &b, index_type beg=-1, index_type end=-1, int spVec=0) const
 
virtual void scalar_multiply (T s)
 
virtual MatrixHandle submatrix (index_type r1, index_type c1, index_type r2, index_type c2)
 
sumOfCol (index_type)
 
DenseMatrix exterior (const ColumnMatrixGeneric &) const
 
vector_norm () const
 
vector_norm (index_type beg, index_type end) const
 
infinity_norm () const
 
virtual void print (std::string &) const
 
virtual std::string dynamic_type_name () const
 
virtual void io (Piostream &)
 
- Public Member Functions inherited from Matrix< T >
virtual ~Matrix ()
 
size_type nrows () const
 
size_type ncols () const
 
virtual bool invert ()
 return false if not invertible. More...
 
T * begin () const
 
T * end () const
 
size_type number_of_nonzero_elements () const
 
virtual bool is_zero () const
 
- Public Member Functions inherited from MatrixBase
 MatrixBase ()
 
void set_raw (bool v)
 
bool get_raw () const
 
void set_raw_filename (const std::string &f)
 
const std::string get_raw_filename () const
 
- Public Member Functions inherited from PropertyManager
 PropertyManager ()
 
 PropertyManager (const PropertyManager &copy)
 
virtual ~PropertyManager ()
 
PropertyManageroperator= (const PropertyManager &pm)
 
void copy_properties (const PropertyManager *src)
 
bool operator== (const PropertyManager &pm)
 
bool operator!= (const PropertyManager &pm)
 
template<class T >
void set_property (const std::string &, const T &, bool is_transient)
 
template<class T >
bool get_property (const std::string &, T &)
 
bool is_property (const std::string &)
 
std::string get_property_name (size_t index)
 
virtual void freeze ()
 – mutability – More...
 
virtual void thaw ()
 thaw will remove all transient properties from the PropertyManager. More...
 
bool is_frozen () const
 query frozen state of a PropertyManager. More...
 
void remove_property (const std::string &)
 
size_t nproperties () const
 
const std::map< std::string,
PropertyBase * > & 
properties () const
 
void set_name (const std::string &name)
 
std::string get_name ()
 
- Public Member Functions inherited from Persistent
virtual ~Persistent ()
 
- Public Member Functions inherited from MatrixInterface< T >
virtual ~MatrixInterface ()
 

Static Public Attributes

static PersistentTypeID type_id
 
- Static Public Attributes inherited from Matrix< T >
static PersistentTypeID type_id
 
- Static Public Attributes inherited from MatrixBase
static PersistentTypeID type_id
 
- Static Public Attributes inherited from PropertyManager
static PersistentTypeID type_id
 

Additional Inherited Members

- Public Types inherited from Matrix< T >
typedef T element_type
 
- Static Public Member Functions inherited from Persistent
static PersistentTypeIDPtr find_derived (const std::string &classname, const std::string &basename)
 
static bool is_base_of (const std::string &parent, const std::string &type)
 
static void add_class (const std::string &type, const std::string &parent, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 
static void add_mesh_class (const std::string &type, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 
static void add_field_class (const std::string &type, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 
- Protected Member Functions inherited from Matrix< T >
 Matrix (size_type nrows=0, size_type ncols=0)
 
- Protected Member Functions inherited from PropertyManager
void clear_transient ()
 A frozen PropertyManager may store transient data. More...
 
- Protected Attributes inherited from Matrix< T >
size_type nrows_
 
size_type ncols_
 
- Protected Attributes inherited from MatrixBase
bool separate_raw_
 
std::string raw_filename_
 
- Protected Attributes inherited from PropertyManager
bool frozen_
 
Core::Thread::Mutex lock
 

Constructor & Destructor Documentation

ColumnMatrixGeneric ( size_type  rows = 0)
explicit
~ColumnMatrixGeneric ( )
virtual

Member Function Documentation

void add ( index_type  row,
index_type  col,
val 
)
virtual

Implements Matrix< T >.

ColumnMatrixGeneric< T > * clone ( ) const
virtual

Make a duplicate, needed to support detach from LockingHandle.

Implements Matrix< T >.

ColumnMatrixGeneric< T > * column ( )
virtual

Implements Matrix< T >.

int compute_checksum ( )
virtual

Implements Matrix< T >.

DenseMatrix * dense ( )
virtual

Convert this matrix to the specified type.

Implements Matrix< T >.

DenseColMajMatrixGeneric< T > * dense_col_maj ( )
virtual

Implements Matrix< T >.

virtual std::string dynamic_type_name ( ) const
inlinevirtual

Reimplemented from Matrix< T >.

DenseMatrix exterior ( const ColumnMatrixGeneric< T > &  m) const
T get ( index_type  r) const
inline
T get ( index_type  r,
index_type  c 
) const
virtual

Implements Matrix< T >.

T * get_data_pointer ( ) const
virtual

Implements Matrix< T >.

size_type get_data_size ( ) const
virtual

Implements Matrix< T >.

void getRowNonzerosNoCopy ( index_type  r,
size_type size,
index_type stride,
index_type *&  cols,
T *&  vals 
)
virtual

Implements Matrix< T >.

T infinity_norm ( ) const
void io ( Piostream stream)
virtual

Reimplemented from MatrixBase.

Matrix< T > * make_transpose ( ) const
virtual

Implements Matrix< T >.

T max ( )
virtual

Implements Matrix< T >.

T min ( )
virtual

Implements Matrix< T >.

void mult ( const ColumnMatrix x,
ColumnMatrix b,
index_type  beg = -1,
index_type  end = -1,
int  spVec = 0 
) const
virtual

Implements Matrix< T >.

void mult_transpose ( const ColumnMatrix x,
ColumnMatrix b,
index_type  beg = -1,
index_type  end = -1,
int  spVec = 0 
) const
virtual

Implements Matrix< T >.

T & operator() ( index_type  i,
index_type  j 
)
virtual
const T & operator() ( index_type  i,
index_type  j 
) const
virtual
ColumnMatrixGeneric< T > & operator= ( const ColumnMatrixGeneric< T > &  c)
Todo:
in C++11–move ctors for all matrix types.
T& operator[] ( int  r) const
inline
void print ( std::string &  str) const
virtual

Reimplemented from MatrixBase.

void put ( index_type  r,
val 
)
inline
void put ( index_type  row,
index_type  col,
val 
)
virtual

Implements Matrix< T >.

void resize ( size_type  new_rows)
void scalar_multiply ( s)
virtual
Todo:
: replace with for_each

Reimplemented from Matrix< T >.

void set_data ( T *  d)
inline
Todo:
: remove
SparseRowMatrixGeneric< T > * sparse ( )
virtual

Implements Matrix< T >.

MatrixHandle submatrix ( index_type  r1,
index_type  c1,
index_type  r2,
index_type  c2 
)
virtual

Implements Matrix< T >.

T sumOfCol ( index_type  c)
T vector_norm ( ) const
T vector_norm ( index_type  beg,
index_type  end 
) const
void zero ( )
virtual

Implements Matrix< T >.

Member Data Documentation

PersistentTypeID type_id
static

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