You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
602 B

  1. #pragma once
  2. #include <memory>
  3. #include "src/utility/eigen.h"
  4. #include "src/storage/SparseMatrix.h"
  5. namespace storm {
  6. namespace adapters {
  7. class EigenAdapter {
  8. public:
  9. /*!
  10. * Converts a sparse matrix into a sparse matrix in the gmm++ format.
  11. * @return A pointer to a row-major sparse matrix in gmm++ format.
  12. */
  13. template<class ValueType>
  14. static std::unique_ptr<Eigen::SparseMatrix<ValueType>> toEigenSparseMatrix(storm::storage::SparseMatrix<ValueType> const& matrix);
  15. };
  16. }
  17. }