Skip to content

Commit 8cc74b6

Browse files
committed
fix batch constructor
1 parent 113c253 commit 8cc74b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/batched_reals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct BatchedReal{T<:Real,V<:Vector{T}} <: Real
1111
end
1212

1313
batch(r::Real) = r
14-
batch(rs::Real...) = BatchedReal(rs)
14+
batch(rs::Real...) = BatchedReal(collect(rs))
1515
batch(v::AbstractVector{<:Real}) = BatchedReal(collect(v))
1616
batch_length(br::BatchedReal) = length(br.vals)
1717
batch_length(::Real) = 1

0 commit comments

Comments
 (0)