30 #ifndef CORE_DATATYPES_MATRIX_TYPE_CONVERSIONS_H
31 #define CORE_DATATYPES_MATRIX_TYPE_CONVERSIONS_H
34 #include <boost/type_traits.hpp>
35 #include <boost/utility/enable_if.hpp>
47 template <
class ToType>
50 return boost::dynamic_pointer_cast<ToType>(matrix);
82 static const double zero_threshold;
boost::shared_ptr< Matrix > MatrixHandle
Definition: MatrixFwd.h:44
Definition: MatrixTypeConversions.h:61
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)
Definition: MatrixTypeConversions.h:48
#define SCISHARE
Definition: share.h:39
boost::shared_ptr< SparseRowMatrix > SparseRowMatrixHandle
Definition: MatrixFwd.h:68
Definition: MatrixTypeConversions.h:74
boost::shared_ptr< DenseColumnMatrix > DenseColumnMatrixHandle
Definition: MatrixFwd.h:60
boost::shared_ptr< DenseMatrix > DenseMatrixHandle
Definition: MatrixFwd.h:52
Definition: MatrixTypeConversions.h:44