guanaqo 1.0.0-alpha.26
Utilities for scientific software
Loading...
Searching...
No Matches
sparse.hpp File Reference

Detailed Description

Eigen interop for sparse matrices.

Definition in file sparse.hpp.

#include <guanaqo/linalg/sparsity.hpp>
#include <Eigen/Sparse>
Include dependency graph for sparse.hpp:

Go to the source code of this file.

Namespaces

namespace  guanaqo
namespace  guanaqo::linalg
namespace  guanaqo::linalg::sparsity

Functions

template<class I, class T>
auto guanaqo::linalg::sparsity::as_eigen (const SparseCSC< I, I > sparsity, std::span< T > values)
 Convert a guanaqo::MatrixView to an Eigen::Matrix view.
template<class Derived>
auto guanaqo::linalg::sparsity::as_sparsity (const Eigen::SparseMatrixBase< Derived > &M, Symmetry symmetry=Symmetry::Unsymmetric)
 Convert an Eigen::SparseMatrix to a guanaqo::SparseCSC view.