Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## [2.5.0] - 2026-07-14
- Add constructor for GenericExtendablSparseMatrixCSC from SparseMatrixCSC data

## [2.4.0] - 2026-07-12
- JacobiPreconBuilder now allows for blocksize
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ExtendableSparse"
uuid = "95c220a8-a1cf-11e9-0c77-dbfce5f500b3"
version = "2.4.1"
version = "2.5.0"
authors = ["Juergen Fuhrmann <juergen.fuhrmann@wias-berlin.de>", "Daniel Runge"]

[deps]
Expand Down
7 changes: 7 additions & 0 deletions src/genericextendablesparsematrixcsc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ function GenericExtendableSparseMatrixCSC{Tm, Tv, Ti}(m::Integer, n::Integer) wh
)
end

function GenericExtendableSparseMatrixCSC{Tm, Tv, Ti}(m::Integer, n::Integer, colptr::Vector{Ti}, rowvals::Vector{Ti}, nzval::Vector{Tv}) where {Tm <: AbstractSparseMatrixExtension, Tv, Ti <: Integer}
return GenericExtendableSparseMatrixCSC(
SparseMatrixCSC(m, n, colptr, rowvals, nzval),
Tm(m, n)
)
end

function GenericExtendableSparseMatrixCSC{Tm, Tv, Ti}(A::SparseMatrixCSC{Tv, Ti}) where {Tm <: AbstractSparseMatrixExtension, Tv, Ti <: Integer}
return GenericExtendableSparseMatrixCSC{Tm, Tv, Ti}(
SparseMatrixCSC(A),
Expand Down
Loading