Skip to content

Commit ac05eaa

Browse files
authored
Bump v0.4.1 (#19)
* Bump v0.4.1 This release includes the VectorInterface v0.5 compat bounds. * Apply formatting changes
1 parent 59692a6 commit ac05eaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SparseArrayKit"
22
uuid = "a9a3c162-d163-4c15-8926-b8794fbefed2"
33
authors = ["Lukas Devos <[email protected]>", "Maarten Van Damme <[email protected]>", "Jutho Haegeman <[email protected]>"]
4-
version = "0.4"
4+
version = "0.4.1"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/base.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ function Base.:/(x::SparseArray, a::Number)
1010
return mul!(similar(x, Base.promote_eltypeof(a, x)), x, inv(a))
1111
end
1212
function Base.:+(x::SparseArray, y::SparseArray)
13-
return (T = Base.promote_eltypeof(x, y); axpy!(+one(T), y, copy!(similar(x, T), x)))
13+
return (T=Base.promote_eltypeof(x, y); axpy!(+one(T), y, copy!(similar(x, T), x)))
1414
end
1515
function Base.:-(x::SparseArray, y::SparseArray)
16-
return (T = Base.promote_eltypeof(x, y); axpy!(-one(T), y, copy!(similar(x, T), x)))
16+
return (T=Base.promote_eltypeof(x, y); axpy!(-one(T), y, copy!(similar(x, T), x)))
1717
end
1818

1919
Base.:-(x::SparseArray) = LinearAlgebra.lmul!(-one(eltype(x)), copy(x))

0 commit comments

Comments
 (0)