Lines Matching refs:a

20 Creates a `CeedVector` of given length. If `allocate` is false, then no memory is allocated.
48 Base.show(io::IO, v::CeedVector) = witharray_read(a -> show(io, a), v, MEM_HOST)
65 Set the [`CeedVector`](@ref) to a constant value.
72 Set the [`CeedVector`](@ref) to a constant value, synonymous to [`setvalue!`](@ref).
121 Set the array used by a [`CeedVector`](@ref), freeing any previously allocated array if
122 applicable. The backend may copy values to a different [`MemType`](@ref). See also
139 Sync the [`CeedVector`](@ref) to a specified [`MemType`](@ref). This function is used to
141 already synchronized, this function results in a no-op.
150 array is returns as a `Ptr{CeedScalar}`.
170 a = args[i]
171 if !Meta.isexpr(a, :(=))
174 if a.args[1] == :mtype
175 mtype = a.args[2]
176 elseif a.args[1] == :size
177 sz = esc(a.args[2])
188 will be used. If the size is not specified, a flat vector will be assumed.
235 Base.setindex!(v::CeedVector, v2::AbstractArray) = @witharray(a = v, a .= v2)
240 Creates a new [`CeedVector`](@ref) using the contents of the given vector `v2`. By default,
242 be changed by specifying a different `cmode`.
253 Create a new `Vector` by copying the contents of `v`.
257 @witharray_read(a = v, v2 .= a)
266 Because of performance issues involving closures, if `f` is a complex operation, it may be
274 Return the sum of a vector:
298 Display the contents of a vector:
316 scale!(v::CeedVector, a::Real)
318 Overwrite `v` with `a*v` for scalar `a`. Returns `v`.
320 function scale!(v::CeedVector, a::Real)
321 C.CeedVectorScale(v[], a)
326 axpy!(a::Real, x::CeedVector, y::CeedVector)
328 Overwrite `y` with `x*a + y`, where `a` is a scalar. Returns `y`.
331 In order to be consistent with `LinearAlgebra.axpy!`, the arguments are passed in order: `a`,
334 function axpy!(a::Real, x::CeedVector, y::CeedVector)
335 C.CeedVectorAXPY(y[], a, x[])