Skip to content

v0.2.2

Choose a tag to compare

@samuel-watson samuel-watson released this 17 Nov 10:34
7a14c45
  • 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