You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added support for Eigen matrices. Sparse class can be initialised using an Eigen matrix, and the function sparse_to_dense() will convert to an Eigen matrix. dense_to_sparse() will convert an Eigen matrix to sparse matrix.
Added more operators (where dblvec = std::vector<double>:
%= dblvec right multiplication by a diagonal matrix represented as a vector
sparse * sparse mutiplication
sparse * dblvec for sparse matrix times a vector
sparse % dblvec for sparse multiplication with a diagonal matrix represented as a vector
sparse + sparse
sparse * Eigen::Dense
Eigen::Dense * sparse
sparse * VectorXd
sparse % VectorXd where the vector represents a diagonal matrix
Added function identity to return a sparse identity matrix
Added both row and column major representations to sparse class
Added member function insert to sparse class to insert an element at the given position