|
ADS
Algorithms and Data Structures
|
Typedefs | |
| template<class T> | |
| using | RowMatrix |
| a dense matrix of Eigen by rows, the layout of DenseMatrix | |
| template<class T, class I = int> | |
| using | RowSparse = Eigen::SparseMatrix< T , Eigen::RowMajor , I > |
| a sparse matrix of Eigen by rows, of the index type I | |
Functions | |
| template<class T> | |
| Eigen::Map< RowMatrix< T > > | map (DenseMatrix< T > &A) |
| the entries of \( A \) as a dense matrix of Eigen, with no copy | |
| template<class T> | |
| Eigen::Map< const RowMatrix< T > > | map (const DenseMatrix< T > &A) |
| the entries of a constant \( A \) as a dense matrix of Eigen, with no copy | |
| template<class T, std::signed_integral I> | |
| Eigen::Map< const RowSparse< T, I > > | map (const BasicCsrMatrix< T, I, I > &A) |
| \( A \) as a sparse matrix of Eigen by rows, its offsets, columns and values read in place: the columns and the offsets of one signed type, the StorageIndex of Eigen | |
| template<class S = int, class T, class I, class P> | |
| RowSparse< T, S > | toEigen (const BasicCsrMatrix< T, I, P > &A) |
| \( A \) copied into a sparse matrix of Eigen by rows of the index type S, in \( O( m + \mathit{nnz} ) \) time, for the layouts that map() does not take | |
| template<class I = std::uint32_t, class P = detail::CsrOffset< I >, class D> | |
| BasicCsrMatrix< typename D::Scalar, I, P > | fromEigen (const Eigen::SparseMatrixBase< D > &S) |
| the sparse expression \( S \) of Eigen copied into a BasicCsrMatrix of the columns I and the offsets P, by its triplets | |