From 4b00c63b8bac9e45d8e69b3f863b2318b9c6751e Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Sun, 22 Jun 2025 10:28:49 -0400 Subject: [PATCH 1/2] Bump v0.4.1 This release includes the VectorInterface v0.5 compat bounds. --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 2793319..19b7428 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SparseArrayKit" uuid = "a9a3c162-d163-4c15-8926-b8794fbefed2" authors = ["Lukas Devos ", "Maarten Van Damme ", "Jutho Haegeman "] -version = "0.4" +version = "0.4.1" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" From df29e3efc9ae36e4e75871715925a59e134fc945 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Mon, 23 Jun 2025 07:34:12 -0400 Subject: [PATCH 2/2] Apply formatting changes --- src/base.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base.jl b/src/base.jl index 4b6fc28..4d4c74b 100644 --- a/src/base.jl +++ b/src/base.jl @@ -10,10 +10,10 @@ function Base.:/(x::SparseArray, a::Number) return mul!(similar(x, Base.promote_eltypeof(a, x)), x, inv(a)) end function Base.:+(x::SparseArray, y::SparseArray) - return (T = Base.promote_eltypeof(x, y); axpy!(+one(T), y, copy!(similar(x, T), x))) + return (T=Base.promote_eltypeof(x, y); axpy!(+one(T), y, copy!(similar(x, T), x))) end function Base.:-(x::SparseArray, y::SparseArray) - return (T = Base.promote_eltypeof(x, y); axpy!(-one(T), y, copy!(similar(x, T), x))) + return (T=Base.promote_eltypeof(x, y); axpy!(-one(T), y, copy!(similar(x, T), x))) end Base.:-(x::SparseArray) = LinearAlgebra.lmul!(-one(eltype(x)), copy(x))