JuliaLinearAlgebra / BandedMatrices.jl

A Julia package for representing banded matrices
http://julialinearalgebra.github.io/BandedMatrices.jl/
Other
128 stars 38 forks source link

Add constructor for BandedMatrix from AbstractSparseMatrix (or SparseMatrixCSC)? #181

Open devon-research opened 4 years ago

devon-research commented 4 years ago

Seems like it would be useful.

(Example: some packages use sparse matrices in their implementation internals and/or output sparse matrices; with this constructor one could easily take the output and create a BandedMatrix to then use for further computations.)

findnz for the sparse matrix would probably make it straightforward.

dlfivefifty commented 4 years ago

Sure! A PR would be appreciated