19 template<
class ValueType>
22 template<
typename ValueType>
23 static std::vector<ValueType>
toStdVector(Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
const& v);
25 template<
typename ValueType>
26 static Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
toEigenVector(std::vector<ValueType>
const& v);
33template<
class ValueType>
34struct hash<
Eigen::Matrix<ValueType, Eigen::Dynamic, 1>> {
35 std::size_t
operator()(Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
const& vector)
const {
37 for (uint_fast64_t i = 0; i < static_cast<uint_fast64_t>(vector.rows()); ++i) {
38 carl::hash_add(seed, std::hash<ValueType>()(vector(i)));
47struct NumTraits<
storm::RationalNumber> : GenericNumTraits<storm::RationalNumber> {
48 typedef storm::RationalNumber
Real;
50 typedef storm::RationalNumber
Nested;
60 enum { IsInteger = 0, IsSigned = 1, IsComplex = 0, RequireInitialization = 1, ReadCost = 6, AddCost = 150, MulCost = 100 };
static Eigen::Matrix< ValueType, Eigen::Dynamic, 1 > toEigenVector(std::vector< ValueType > const &v)
static std::unique_ptr< Eigen::SparseMatrix< ValueType > > toEigenSparseMatrix(storm::storage::SparseMatrix< ValueType > const &matrix)
Converts a sparse matrix into a sparse matrix in the gmm++ format.
static std::vector< ValueType > toStdVector(Eigen::Matrix< ValueType, Eigen::Dynamic, 1 > const &v)
A class that holds a possibly non-square matrix in the compressed row storage format.
storm::RationalNumber Real
static Real dummy_precision()
storm::RationalNumber NonInteger
storm::RationalNumber Nested
std::size_t operator()(Eigen::Matrix< ValueType, Eigen::Dynamic, 1 > const &vector) const