Lines Matching full:ref
12 ref::RefValue{C.CeedVector} field
14 CeedVector(ref::Ref{C.CeedVector}) = new(ref, nothing)
25 ref = Ref{C.CeedVector}()
26 C.CeedVectorCreate(c[], len, ref)
27 obj = CeedVector(ref)
37 destroy(v::CeedVector) = C.CeedVectorDestroy(v.ref) # COV_EXCL_LINE
38 Base.getindex(v::CeedVector) = v.ref[]
51 len = Ref{C.CeedSize}()
65 Set the [`CeedVector`](@ref) to a constant value.
72 Set the [`CeedVector`](@ref) to a constant value, synonymous to [`setvalue!`](@ref).
79 Return the norm of the given [`CeedVector`](@ref).
84 nrm = Ref{CeedScalar}()
92 Return the norm of the given [`CeedVector`](@ref), see [`norm(::CeedVector,
93 ::NormType)`](@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
123 [`syncarray!`](@ref) and [`takearray!`](@ref).
126 The [`CopyMode`](@ref) `OWN_POINTER` is not suitable for use with arrays that are
139 Sync the [`CeedVector`](@ref) to a specified [`MemType`](@ref). This function is used to
140 force synchronization of arrays set with [`setarray!`](@ref). If the requested memtype is
148 Take ownership of the [`CeedVector`](@ref) array and remove the array from the
149 [`CeedVector`](@ref). The caller is responsible for managing and freeing the array. The
153 ptr = Ref{Ptr{CeedScalar}}()
186 Executes `body`, having extracted the contents of the [`CeedVector`](@ref) `v` as an array
187 with name `v_arr`. If the [`memory type`](@ref MemType) `mtype` is not provided, `MEM_HOST`
199 arr_ref = Ref{Ptr{C.CeedScalar}}()
213 Same as [`@witharray`](@ref), but provides read-only access to the data.
218 arr_ref = Ref{Ptr{C.CeedScalar}}()
233 Sets the values of [`CeedVector`](@ref) `v` equal to those of `v2` using broadcasting.
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
264 type`](@ref MemType) `mtype`.
280 arr_ref = Ref{Ptr{C.CeedScalar}}()
294 Same as [`witharray`](@ref), but with read-only access to the data.
304 arr_ref = Ref{Ptr{C.CeedScalar}}()