The matrices of ADS as matrices of Eigen (https://eigen.tuxfamily.org), so that the solvers, the decompositions and the products of Eigen run on them, beyond the book.
More...
|
| template<class T> |
| using | ADS::eigen::RowMatrix |
| | a dense matrix of Eigen by rows, the layout of DenseMatrix
|
| template<class T, class I = int> |
| using | ADS::eigen::RowSparse = Eigen::SparseMatrix< T , Eigen::RowMajor , I > |
| | a sparse matrix of Eigen by rows, of the index type I
|
|
| template<class T> |
| Eigen::Map< RowMatrix< T > > | ADS::eigen::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 > > | ADS::eigen::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 > > | ADS::eigen::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 > | ADS::eigen::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 > | ADS::eigen::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
|
The matrices of ADS as matrices of Eigen (https://eigen.tuxfamily.org), so that the solvers, the decompositions and the products of Eigen run on them, beyond the book.
◆ RowMatrix
Initial value:
Eigen::Matrix< T , Eigen::Dynamic , Eigen::Dynamic , Eigen::RowMajor >
a dense matrix of Eigen by rows, the layout of DenseMatrix
◆ RowSparse
template<class T, class I = int>
a sparse matrix of Eigen by rows, of the index type I
◆ fromEigen()
template<class I = std::uint32_t, class P = detail::CsrOffset< I >, class D>
| BasicCsrMatrix< typename D::Scalar, I, P > ADS::eigen::fromEigen |
( |
const Eigen::SparseMatrixBase< D > & | S | ) |
|
|
nodiscard |
the sparse expression \( S \) of Eigen copied into a BasicCsrMatrix of the columns I and the offsets P, by its triplets
- Precondition
- the columns fit I and the nonzeros P
◆ map() [1/3]
template<class T, std::signed_integral I>
\( 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
◆ map() [2/3]
the entries of a constant \( A \) as a dense matrix of Eigen, with no copy
◆ map() [3/3]
the entries of \( A \) as a dense matrix of Eigen, with no copy
◆ toEigen()
template<class S = int, class T, class I, class P>
\( 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
- Precondition
- the sizes and the nonzeros fit S