Skip to content

Commit 9da9025

Browse files
committed
improve BigFloat support
1 parent 8f865d8 commit 9da9025

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!(zerovectory(ty, T), ty, β), tx, α)
7272
end
7373
function VectorInterface.add!(ty::AbstractTensorMap, tx::AbstractTensorMap,
7474
α::Number, β::Number)

0 commit comments

Comments
 (0)