Skip to content

Commit 657f4fc

Browse files
lkdvoskshyatt
authored andcommitted
improve BigFloat support
1 parent 049ec9a commit 657f4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/vectorinterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function VectorInterface.add(ty::AbstractTensorMap, tx::AbstractTensorMap,
6868
α::Number, β::Number)
6969
space(ty) == space(tx) || throw(SpaceMismatch("$(space(ty))$(space(tx))"))
7070
T = VectorInterface.promote_add(ty, tx, α, β)
71-
return add!(scale!(similar(ty, T), ty, β), tx, α)
71+
return add!(scale!(zerovector(ty, T), ty, β), tx, α)
7272
end
7373
function VectorInterface.add!(ty::AbstractTensorMap, tx::AbstractTensorMap,
7474
α::Number, β::Number)

0 commit comments

Comments
 (0)