Dear all,

I am pleased to announce a new package SparseVectors: 
https://github.com/lindahua/SparseVectors.jl

Sparse data has become increasingly common in machine learning and related 
areas. For example, in document analysis, each document is often 
represented as a sparse vector, which each entry represents the number of 
occurrences of a certain word. However, the support of sparse vectors 
remains quite limited in Julia base.

This package provides two types SparseVector and SparseVectorView and a 
series of methods to work with sparse vectors. Specifically, this package 
provides the following functionalities:

   - Construction of sparse vectors
   - Get a view of a column in a sparse matrix (of CSC format), or a view 
   of a range of columns.
   - Specialized arithmetic functions on sparse vectors, e.g. +, -, *, etc.
   - Specialized reduction functions on sparse vectors, e.g. sum, vecnorm, 
   etc.
   
It is also worth noting that there's been some discussion (see 
https://github.com/JuliaLang/julia/pull/8718) of adding SparseVector to the 
Julia Base. Hopefully, this can be added in 0.4. Even this happens, the 
package remains useful, as it also works with Julia 0.3 (which won't have 
SparseVector support).

Best,
Dahua


Reply via email to