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

#include <MatrixFwd.h>

Inheritance diagram for SparseRowMatrixGeneric< T >:
MatrixBase< T > MatrixIOBase Datatype Persistent HasId< IdType, IdGenerator >

Public Types

typedef T value_type
 
typedef SparseRowMatrixGeneric< T > this_type
 
typedef Eigen::SparseMatrix< T,
Eigen::RowMajor, index_type
EigenBase
 
typedef Eigen::Triplet< T > Triplet
 
- Public Types inherited from Datatype
typedef HasIntegerId::id_type id_type
 
- Public Types inherited from HasId< IdType, IdGenerator >
typedef IdType id_type
 

Public Member Functions

 SparseRowMatrixGeneric ()
 
 SparseRowMatrixGeneric (int nrows, int ncols)
 
 SparseRowMatrixGeneric (int nrows, int ncols, const index_type *rowCounter, const index_type *columnCounter, size_t nnz)
 Legacy construction compatibility. Useful for converting old code, but should be avoided in new code. More...
 
template<typename OtherDerived >
 SparseRowMatrixGeneric (const Eigen::SparseMatrixBase< OtherDerived > &other)
 This constructor allows you to construct SparseRowMatrixGeneric from Eigen expressions. More...
 
template<typename OtherDerived >
SparseRowMatrixGenericoperator= (const Eigen::SparseMatrixBase< OtherDerived > &other)
 This method allows you to assign Eigen expressions to SparseRowMatrixGeneric. More...
 
virtual SparseRowMatrixGenericclone () const
 
virtual size_t nrows () const
 
virtual size_t ncols () const
 
const index_typeget_rows () const
 
const index_typeget_cols () const
 
virtual void accept (MatrixVisitorGeneric< T > &visitor)
 
bool isSymmetric () const
 
virtual T get (int i, int j) const override
 
virtual void put (int i, int j, const T &val) override
 
const MatrixBase< T > & castForPrinting () const
 
virtual std::string dynamic_type_name () const
 Persistent representation... More...
 
virtual void io (Piostream &)
 
- Public Member Functions inherited from MatrixBase< T >
bool empty () const
 
- Public Member Functions inherited from MatrixIOBase
 MatrixIOBase ()
 
- Public Member Functions inherited from Datatype
 Datatype ()
 
virtual ~Datatype ()
 
 Datatype (const Datatype &other)
 
Datatypeoperator= (const Datatype &rhs)
 
template<typename T >
const T * as () const
 
- Public Member Functions inherited from Persistent
virtual ~Persistent ()
 
- Public Member Functions inherited from HasId< IdType, IdGenerator >
 HasId ()
 
IdType id () const
 

Static Public Member Functions

static PersistentSparseRowMatrixGenericMaker ()
 
- 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)
 

Static Public Attributes

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

Additional Inherited Members

- Protected Attributes inherited from MatrixIOBase
bool separate_raw_
 
std::string raw_filename_
 

Member Typedef Documentation

typedef Eigen::SparseMatrix<T, Eigen::RowMajor, index_type> EigenBase
typedef Eigen::Triplet<T> Triplet
typedef T value_type

Constructor & Destructor Documentation

Todo:
: need C++11
SparseRowMatrixGeneric ( int  nrows,
int  ncols 
)
inline
SparseRowMatrixGeneric ( int  nrows,
int  ncols,
const index_type rowCounter,
const index_type columnCounter,
size_t  nnz 
)
inline

Legacy construction compatibility. Useful for converting old code, but should be avoided in new code.

SparseRowMatrixGeneric ( const Eigen::SparseMatrixBase< OtherDerived > &  other)
inline

This constructor allows you to construct SparseRowMatrixGeneric from Eigen expressions.

Member Function Documentation

virtual void accept ( MatrixVisitorGeneric< T > &  visitor)
inlinevirtual

Implements MatrixBase< T >.

const MatrixBase<T>& castForPrinting ( ) const
inline
virtual SparseRowMatrixGeneric* clone ( ) const
inlinevirtual

Implements Datatype.

virtual std::string dynamic_type_name ( ) const
inlinevirtual

Persistent representation...

Todo:
: lame...figure out a better way

Reimplemented from MatrixIOBase.

virtual T get ( int  i,
int  j 
) const
inlineoverridevirtual

Implements MatrixBase< T >.

const index_type* get_cols ( ) const
inline
const index_type* get_rows ( ) const
inline
void io ( Piostream stream)
virtual

Reimplemented from MatrixIOBase.

bool isSymmetric ( ) const
inline
virtual size_t ncols ( ) const
inlinevirtual

Implements MatrixBase< T >.

virtual size_t nrows ( ) const
inlinevirtual

Implements MatrixBase< T >.

SparseRowMatrixGeneric& operator= ( const Eigen::SparseMatrixBase< OtherDerived > &  other)
inline

This method allows you to assign Eigen expressions to SparseRowMatrixGeneric.

virtual void put ( int  i,
int  j,
const T &  val 
)
inlineoverridevirtual

Implements MatrixBase< T >.

Persistent * SparseRowMatrixGenericMaker ( )
static

Member Data Documentation

PersistentTypeID type_id
static

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