Skip to content

Commit

Permalink
circumvent broken sparsearray broadcasting behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Nov 12, 2024
1 parent 58097da commit 272f802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "VectorInterface"
uuid = "409d34a3-91d5-4945-b6ec-7529ddf182d8"
authors = ["Jutho Haegeman <[email protected]> and contributors"]
version = "0.4.8"
version = "0.4.9"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 2 additions & 2 deletions src/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function add!(y::AbstractArray, x::AbstractArray, α::Number, β::Number)
ax = axes(x)
ay = axes(y)
ax == ay || throw(DimensionMismatch("Output axes $ay differ from input axes $ax"))
y .= add!!.(y, x, (α,), (β,)) # might error
y .= add!!.(y, x, α, β) # might error
return y
end

Expand All @@ -97,7 +97,7 @@ function add!!(y::AbstractArray, x::AbstractArray, α::Number, β::Number)
ax = axes(x)
ay = axes(y)
ax == ay || throw(DimensionMismatch("Output axes $ay differ from input axes $ax"))
return add!!.(y, x, (α,), (β,))
return add!!.(y, x, α, β)
end
end

Expand Down

0 comments on commit 272f802

Please sign in to comment.