SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
matrix_cast Class Reference

#include <MatrixTypeConversions.h>

Static Public Member Functions

template<class ToType >
static boost::shared_ptr< ToType > to (const MatrixHandle &matrix, typename boost::enable_if< boost::is_base_of< MatrixBase< typename ToType::value_type >, ToType > >::type *=0)
 
static DenseMatrixHandle as_dense (const MatrixHandle &mh)
 
static SparseRowMatrixHandle as_sparse (const MatrixHandle &mh)
 
static DenseColumnMatrixHandle as_column (const MatrixHandle &mh)
 

Detailed Description

No conversion is done. NULL is returned if the matrix is not of the appropriate type.

Member Function Documentation

static DenseColumnMatrixHandle as_column ( const MatrixHandle mh)
static
static DenseMatrixHandle as_dense ( const MatrixHandle mh)
static
static SparseRowMatrixHandle as_sparse ( const MatrixHandle mh)
static
static boost::shared_ptr<ToType> to ( const MatrixHandle matrix,
typename boost::enable_if< boost::is_base_of< MatrixBase< typename ToType::value_type >, ToType > >::type *  = 0 
)
inlinestatic

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