Skip to content

Commit ee4c199

Browse files
committed
add backslash operator
1 parent b5a9589 commit ee4c199

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ExtendableSparse"
22
uuid = "95c220a8-a1cf-11e9-0c77-dbfce5f500b3"
33
authors = ["Juergen Fuhrmann <[email protected]>"]
4-
version = "0.3.0"
4+
version = "0.3.1"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/extendable.jl

+12
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,18 @@ function LinearAlgebra.mul!(r::AbstractArray{T,1} where T, ext::ExtendableSpars
248248
end
249249

250250

251+
252+
"""
253+
$(SIGNATURES)
254+
255+
[`\\`](@ref) for extmatrix
256+
"""
257+
function LinearAlgebra.:\(ext::ExtendableSparseMatrix,X::Union{AbstractArray{T,1}, AbstractArray{T,2}} where T)
258+
flush!(ext)
259+
ext.cscmatrix\X
260+
end
261+
262+
251263
"""
252264
$(SIGNATURES)
253265

0 commit comments

Comments
 (0)