18 template<
class ValueType>
21 template<
typename ValueType>
22 static std::vector<ValueType>
toStdVector(Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
const& v);
24 template<
typename ValueType>
25 static Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
toEigenVector(std::vector<ValueType>
const& v);
32template<
class ValueType>
33struct hash<
Eigen::Matrix<ValueType, Eigen::Dynamic, 1>> {
34 std::size_t
operator()(Eigen::Matrix<ValueType, Eigen::Dynamic, 1>
const& vector)
const {
36 for (uint_fast64_t i = 0; i < static_cast<uint_fast64_t>(vector.rows()); ++i) {
37 carl::hash_add(seed, std::hash<ValueType>()(vector(i)));
46struct NumTraits<
storm::RationalNumber> : GenericNumTraits<storm::RationalNumber> {
47 typedef storm::RationalNumber
Real;
49 typedef storm::RationalNumber
Nested;
59 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