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.
23 lines
602 B
23 lines
602 B
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "src/utility/eigen.h"
|
|
|
|
#include "src/storage/SparseMatrix.h"
|
|
|
|
namespace storm {
|
|
namespace adapters {
|
|
|
|
class EigenAdapter {
|
|
public:
|
|
/*!
|
|
* Converts a sparse matrix into a sparse matrix in the gmm++ format.
|
|
* @return A pointer to a row-major sparse matrix in gmm++ format.
|
|
*/
|
|
template<class ValueType>
|
|
static std::unique_ptr<Eigen::SparseMatrix<ValueType>> toEigenSparseMatrix(storm::storage::SparseMatrix<ValueType> const& matrix);
|
|
};
|
|
|
|
}
|
|
}
|