Constructors
-
danceq::internal::SparseMatrix::SparseMatrix(void)
Default constructor with dimension zero.
-
danceq::internal::SparseMatrix::SparseMatrix(const uint64_t dim_)
Constructor for the null matrix with the given dimension.
-
danceq::internal::SparseMatrix::SparseMatrix(const std::vector<std::vector<ScalarType>> &matrix)
Constructor with dense matrix using
std::vector
.- Parameters:
matrix – Dense matrix
-
danceq::internal::SparseMatrix::SparseMatrix(const std::vector<uint64_t> &range_, const std::vector<std::pair<uint64_t, ScalarType>> &data_)
Constructor with given range and data.
The column indices of data_ have to be in ascending order for each row and match range_.
- Parameters:
range_ – range
data_ – data