Lines Matching refs:v2
230 setindex!(v::CeedVector, v2::AbstractArray)
231 v[] = v2
233 Sets the values of [`CeedVector`](@ref) `v` equal to those of `v2` using broadcasting.
235 Base.setindex!(v::CeedVector, v2::AbstractArray) = @witharray(a = v, a .= v2)
238 CeedVector(c::Ceed, v2::AbstractVector; mtype=MEM_HOST, cmode=COPY_VALUES)
240 Creates a new [`CeedVector`](@ref) using the contents of the given vector `v2`. By default,
241 the contents of `v2` will be copied to the new [`CeedVector`](@ref), but this behavior can
244 function CeedVector(c::Ceed, v2::AbstractVector; mtype=MEM_HOST, cmode=COPY_VALUES)
245 v = CeedVector(c, length(v2); allocate=false)
246 setarray!(v, mtype, cmode, v2)
256 v2 = Vector{CeedScalar}(undef, length(v))
257 @witharray_read(a = v, v2 .= a)