We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f865d8 commit 9da9025Copy full SHA for 9da9025
src/tensors/vectorinterface.jl
@@ -68,7 +68,7 @@ function VectorInterface.add(ty::AbstractTensorMap, tx::AbstractTensorMap,
68
α::Number, β::Number)
69
space(ty) == space(tx) || throw(SpaceMismatch("$(space(ty)) ≠ $(space(tx))"))
70
T = VectorInterface.promote_add(ty, tx, α, β)
71
- return add!(scale!(similar(ty, T), ty, β), tx, α)
+ return add!(scale!(zerovectory(ty, T), ty, β), tx, α)
72
end
73
function VectorInterface.add!(ty::AbstractTensorMap, tx::AbstractTensorMap,
74
0 commit comments