Lines Matching full:ref
17 - [`create_tensor_h1_lagrange_basis`](@ref)
18 - [`create_tensor_h1_basis`](@ref)
19 - [`create_h1_basis`](@ref)
20 - [`create_hdiv_basis`](@ref)
21 - [`create_hcurl_basis`](@ref)
24 ref::RefValue{C.CeedBasis} field
25 function Basis(ref)
26 obj = new(ref)
34 destroy(b::Basis) = C.CeedBasisDestroy(b.ref) # COV_EXCL_LINE
35 Base.getindex(b::Basis) = b.ref[]
44 - `ceed`: A [`Ceed`](@ref) object where the [`Basis`](@ref) will be created.
54 ref = Ref{C.CeedBasis}()
55 C.CeedBasisCreateTensorH1Lagrange(c[], dim, ncomp, p, q, quad_mode, ref)
56 Basis(ref)
65 - `ceed`: A [`Ceed`](@ref) object where the [`Basis`](@ref) will be created.
98 ref = Ref{C.CeedBasis}()
109 ref,
111 Basis(ref)
120 - `ceed`: A [`Ceed`](@ref) object where the [`Basis`](@ref) will be created.
121 - `topo`: [`Topology`](@ref) of element, e.g. hypercube, simplex, etc.
156 ref = Ref{C.CeedBasis}()
167 ref,
169 Basis(ref)
178 - `ceed`: A [`Ceed`](@ref) object where the [`Basis`](@ref) will be created.
179 - `topo`: [`Topology`](@ref) of element, e.g. hypercube, simplex, etc.
214 ref = Ref{C.CeedBasis}()
225 ref,
227 Basis(ref)
236 - `ceed`: A [`Ceed`](@ref) object where the [`Basis`](@ref) will be created.
237 - `topo`: [`Topology`](@ref) of element, e.g. hypercube, simplex, etc.
273 ref = Ref{C.CeedBasis}()
284 ref,
286 Basis(ref)
293 the [`CeedVector`](@ref) `v`.
301 Set the [`EvalMode`](@ref) `emode` to:
321 Performs the same function as the above-defined [`apply!`](@ref apply!(b::Basis, nelem,
323 automatically convert from Julia arrays to [`CeedVector`](@ref) for convenience.
328 ceed_ref = Ref{C.Ceed}()
334 qcomp = Ref{CeedInt}()
347 Return the spatial dimension of the given [`Basis`](@ref).
350 dim = Ref{CeedInt}()
358 Return the spatial dimension of the given [`Topology`](@ref).
367 Return the [`Topology`](@ref) of the given [`Basis`](@ref).
370 topo = Ref{Topology}()
378 Return the number of components of the given [`Basis`](@ref).
381 ncomp = Ref{CeedInt}()
389 Return the number of nodes of the given [`Basis`](@ref).
392 nnodes = Ref{CeedInt}()
400 Return the number of 1D nodes of the given (tensor-product) [`Basis`](@ref).
403 nnodes1d = Ref{CeedInt}()
411 Return the number of quadrature points of the given [`Basis`](@ref).
414 nqpts = Ref{CeedInt}()
422 Return the number of 1D quadrature points of the given (tensor-product) [`Basis`](@ref).
425 nqpts1d = Ref{CeedInt}()
434 [`Basis`](@ref).
437 istensor = Ref{Bool}()
439 ref = Ref{Ptr{CeedScalar}}()
440 C.CeedBasisGetQRef(b[], ref)
442 istensor[] ? unsafe_wrap(Array, ref[], getnumqpts1d(b)) :
443 unsafe_wrap(Array, ref[], (getnumqpts(b), getdimension(b)))',
451 [`Basis`](@ref).
454 istensor = Ref{Bool}()
456 ref = Ref{Ptr{CeedScalar}}()
457 C.CeedBasisGetQWeights(b[], ref)
458 copy(unsafe_wrap(Array, ref[], istensor[] ? getnumqpts1d(b) : getnumqpts(b)))
464 Get the interpolation matrix of the given [`Basis`](@ref). Returns a matrix of size
469 ref = Ref{Ptr{CeedScalar}}()
470 C.CeedBasisGetInterp(b[], ref)
473 qcomp = Ref{CeedInt}()
476 collect(unsafe_wrap(Array, ref[], (p, q))')
478 permutedims(unsafe_wrap(Array, ref[], (p, q, qcomp[])), [3, 2, 1])
485 Get the 1D interpolation matrix of the given [`Basis`](@ref). `b` must be a tensor-product
490 ref = Ref{Ptr{CeedScalar}}()
491 C.CeedBasisGetInterp1D(b[], ref)
494 collect(unsafe_wrap(Array, ref[], (p, q))')
500 Get the gradient matrix of the given [`Basis`](@ref). Returns a tensor of size
504 ref = Ref{Ptr{CeedScalar}}()
505 C.CeedBasisGetGrad(b[], ref)
509 permutedims(unsafe_wrap(Array, ref[], (p, q, dim)), [3, 2, 1])
515 Get the 1D derivative matrix of the given [`Basis`](@ref). Returns a matrix of size
519 ref = Ref{Ptr{CeedScalar}}()
520 C.CeedBasisGetGrad1D(b[], ref)
523 collect(unsafe_wrap(Array, ref[], (p, q))')
529 Get the divergence matrix of the given [`Basis`](@ref). Returns a tensor of size
533 ref = Ref{Ptr{CeedScalar}}()
534 C.CeedBasisGetDiv(b[], ref)
537 collect(unsafe_wrap(Array, ref[], (p, q))')
543 Get the curl matrix of the given [`Basis`](@ref). Returns a tensor of size
548 ref = Ref{Ptr{CeedScalar}}()
549 C.CeedBasisGetCurl(b[], ref)
552 qcomp = Ref{CeedInt}()
554 permutedims(unsafe_wrap(Array, ref[], (p, q, qcomp[])), [3, 2, 1])