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 113c253 commit 8cc74b6Copy full SHA for 8cc74b6
src/batched_reals.jl
@@ -11,7 +11,7 @@ struct BatchedReal{T<:Real,V<:Vector{T}} <: Real
11
end
12
13
batch(r::Real) = r
14
-batch(rs::Real...) = BatchedReal(rs)
+batch(rs::Real...) = BatchedReal(collect(rs))
15
batch(v::AbstractVector{<:Real}) = BatchedReal(collect(v))
16
batch_length(br::BatchedReal) = length(br.vals)
17
batch_length(::Real) = 1
0 commit comments