Public API
Index
Exported types and functions
UnifiedSparseGrids.AbstractAxisFamily — Type
AbstractAxisFamilyAbstract supertype for one-dimensional refinement families.
UnifiedSparseGrids.AbstractLineOp — Type
AbstractLineOpAbstract supertype for one-dimensional fiber operators used by unidirectional sweeps.
UnifiedSparseGrids.AbstractMeasure — Type
AbstractMeasureAbstract supertype for reference measures associated with univariate nodes and bases.
UnifiedSparseGrids.AbstractNestedAxisFamily — Type
AbstractNestedAxisFamilyAlias for AbstractNestedNodes.
UnifiedSparseGrids.AbstractNestedNodes — Type
AbstractNestedNodes <: AbstractUnivariateNodesAbstract supertype for nested one-dimensional node families.
UnifiedSparseGrids.AbstractNodeOrder — Type
AbstractNodeOrderAbstract supertype for one-dimensional storage orders.
UnifiedSparseGrids.AbstractNonNestedAxisFamily — Type
AbstractNonNestedAxisFamilyAlias for AbstractNonNestedNodes.
UnifiedSparseGrids.AbstractNonNestedNodes — Type
AbstractNonNestedNodes <: AbstractUnivariateNodesAbstract supertype for non-nested one-dimensional node families.
UnifiedSparseGrids.AbstractTensorOp — Type
AbstractTensorOp{D}Abstract supertype for operators applied by cyclic unidirectional sweeps over D dimensions.
UnifiedSparseGrids.AbstractUnivariateBasis — Type
Abstract supertype for all 1D bases.
UnifiedSparseGrids.AbstractUnivariateNodes — Type
AbstractUnivariateNodes <: AbstractAxisFamilyAbstract supertype for one-dimensional node families.
UnifiedSparseGrids.ChebyshevGaussLobattoNodes — Type
struct ChebyshevGaussLobattoNodes{O,EM} <: AbstractNestedNodesNested Chebyshev-Gauss-Lobatto node family with storage order O and endpoint mask EM.
UnifiedSparseGrids.ChebyshevTMeasure — Type
struct ChebyshevTMeasure <: AbstractMeasureChebyshev first-kind measure on [-1, 1].
UnifiedSparseGrids.ChebyshevUMeasure — Type
struct ChebyshevUMeasure <: AbstractMeasureChebyshev second-kind measure on [-1, 1].
UnifiedSparseGrids.ClenshawCurtisNodes — Type
ClenshawCurtisNodesAlias for ChebyshevGaussLobattoNodes.
UnifiedSparseGrids.CombinationSubproblem — Type
A single full-grid subproblem in the sparse grid combination technique.
Fields:
cap: full-tensor refinement-cap vectorL(0-based), meaning the tensor grid includes all subspacesW_ℓwithℓ ≤ Lcomponentwise.weight: integer combination weight.
UnifiedSparseGrids.CompositeLineOp — Type
struct CompositeLineOp{Ops<:Tuple} <: AbstractLineOpSequential composition of several line operators.
UnifiedSparseGrids.CompositeTensorOp — Type
struct CompositeTensorOp{D,Ops} <: AbstractTensorOp{D}Sequential composition of tensor sweeps.
UnifiedSparseGrids.CrossGridPlan — Type
Plan for applying a (possibly) cross-grid tensor-product operator.
The plan chooses an intermediate covering grid gridW that provides a stable storage layout for unidirectional sweeps.
- If
gridX === gridW, input embedding is skipped. - If
gridY === gridW, output restriction is skipped.
Otherwise, x_to_w and/or y_to_w hold index maps into gridW.
UnifiedSparseGrids.CyclicLayoutPlan — Type
struct CyclicLayoutPlan{D,Ti<:Integer,T<:Number}Reusable cyclic-layout plan with shared metadata and mutable worker scratch.
UnifiedSparseGrids.CyclicLayoutPlan — Method
CyclicLayoutPlan(grid, ::Type{T}; Ti=Int)Build a reusable cyclic-layout plan for grid and coefficient element type T. The plan captures the current :default thread-pool size and precomputes one layout-only fiber queue per cyclic orientation.
UnifiedSparseGrids.DyadicNodes — Type
struct DyadicNodes{O,EM} <: AbstractNestedNodesNested dyadic node family on [0, 1] with storage order O and endpoint mask EM. With both endpoints present, the total number of points is 2^level + 1 at refinement level level.
UnifiedSparseGrids.EquispacedNodes — Type
EquispacedNodesAlias for FourierEquispacedNodes.
UnifiedSparseGrids.EvaluationPlan — Type
A reusable evaluation plan for a fixed grid, bases, and point set.
UnifiedSparseGrids.FourierEquispacedNodes — Type
struct FourierEquispacedNodes{O} <: AbstractNestedNodesNested equispaced node family on [0, 1) with storage order O.
UnifiedSparseGrids.FourierMeasure — Type
struct FourierMeasure <: AbstractMeasurePeriodic measure on [0, 1) used by Fourier-based node families.
UnifiedSparseGrids.GaussLobattoNodes — Type
struct GaussLobattoNodes{M,O} <: AbstractNonNestedNodesGauss-Lobatto node family with measure M and storage order O.
UnifiedSparseGrids.GaussNodes — Type
struct GaussNodes{M,O} <: AbstractNonNestedNodesGaussian node family with measure M and storage order O.
UnifiedSparseGrids.HatBasis — Type
Piecewise-linear hierarchical hat basis on dyadic grids.
The basis adapts to the node rule: if the dyadic nodes include endpoints at level 0, the basis includes the corresponding boundary functions; otherwise, level 0 is empty.
UnifiedSparseGrids.HatStiffnessDiagLineOp — Type
1D stiffness diagonal in the hierarchical hat basis (Balder–Zenger Eq. (9)-(10)).
UnifiedSparseGrids.HermiteMeasure — Type
struct HermiteMeasure <: AbstractMeasureHermite measure on (-Inf, Inf).
UnifiedSparseGrids.IdentityLineOp — Type
struct IdentityLineOp <: AbstractLineOpIdentity line operator.
UnifiedSparseGrids.InPlaceOp — Type
struct InPlaceOp <: LineOpStyleTrait indicating that a line operator mutates its input buffer in place.
UnifiedSparseGrids.JacobiMeasure — Type
struct JacobiMeasure{T<:Real} <: AbstractMeasureJacobi measure with parameters alpha = α and beta = β, both greater than -1.
UnifiedSparseGrids.LaguerreMeasure — Type
struct LaguerreMeasure{T<:Real} <: AbstractMeasureLaguerre measure with parameter alpha = α > -1 on [0, Inf).
UnifiedSparseGrids.LegendreMeasure — Type
struct LegendreMeasure <: AbstractMeasureUniform measure on [-1, 1] associated with Legendre polynomials.
UnifiedSparseGrids.LejaNodes — Type
struct LejaNodes{M,O} <: AbstractNestedNodesWeighted Leja node family with measure M and storage order O.
UnifiedSparseGrids.LevelOrder — Type
struct LevelOrder <: AbstractNodeOrderHierarchical one-dimensional order obtained by recursively splitting even indices before odd indices. On radix-2 grids this agrees with bit reversal.
UnifiedSparseGrids.LineBandedOp — Type
struct LineBandedOp{Part,F} <: AbstractLineOpSize-parameterized banded family acting on one fiber.
The family function f(n, T) must return a square BandedMatrices.AbstractBandedMatrix of size n × n; the recommended concrete return type is BandedMatrix. Smaller refinement levels reuse leading principal banded views, so the family must be prefix-compatible across n.
When a banded family is algebraically lower- or upper-triangular, prefer LineBandedOp(Val(:lower), f) or LineBandedOp(Val(:upper), f) so UpDownTensorOp can avoid splitting that dimension.
UnifiedSparseGrids.LineChebyshevLegendre — Type
struct LineChebyshevLegendre{Dir} <: AbstractLineOpPer-fiber Chebyshev-Legendre coefficient conversion.
UnifiedSparseGrids.LineDehierarchize — Type
struct LineDehierarchize <: AbstractLineOpIn-place dehierarchization on one fiber.
UnifiedSparseGrids.LineDehierarchizeTranspose — Type
struct LineDehierarchizeTranspose <: AbstractLineOpTranspose dehierarchization on one fiber.
UnifiedSparseGrids.LineDiagonalOp — Type
struct LineDiagonalOp{F} <: AbstractLineOpSize-parameterized diagonal family acting on one fiber.
The family function f(n, T) must return a vector-like container of diagonal entries of length n. Smaller refinement levels reuse prefix views d[1:m], so the family must be prefix-compatible across n.
UnifiedSparseGrids.LineHierarchize — Type
struct LineHierarchize <: AbstractLineOpIn-place hierarchization on one fiber.
UnifiedSparseGrids.LineHierarchizeTranspose — Type
struct LineHierarchizeTranspose <: AbstractLineOpTranspose hierarchization on one fiber.
UnifiedSparseGrids.LineMatrixOp — Type
struct LineMatrixOp{MatVecT<:AbstractVector} <: AbstractLineOpLevel-dependent dense or structured square matrix family acting on one fiber.
UnifiedSparseGrids.LineOpStyle — Type
LineOpStyleTrait base type describing whether a line operator is in-place or out-of-place.
UnifiedSparseGrids.LineTransform — Type
struct LineTransform{Dir} <: AbstractLineOpPer-fiber modal transform such as an FFT or DCT.
UnifiedSparseGrids.NaturalOrder — Type
struct NaturalOrder <: AbstractNodeOrderNatural one-dimensional order, typically increasing coordinate order.
UnifiedSparseGrids.OrientedCoeffs — Type
struct OrientedCoeffs{D,T}Coefficient buffer paired with a storage-to-physical dimension permutation.
UnifiedSparseGrids.OutOfPlaceOp — Type
struct OutOfPlaceOp <: LineOpStyleTrait indicating that a line operator writes to a separate output buffer.
UnifiedSparseGrids.PattersonNodes — Type
struct PattersonNodes{M,O} <: AbstractNestedNodesGauss-Patterson node family with measure M and storage order O.
UnifiedSparseGrids.PiecewisePolynomialBasis — Type
Piecewise-polynomial hierarchical basis on dyadic grids.
At level ℓ, the (local) polynomial degree defaults to p = min(ℓ+1, pmax).
UnifiedSparseGrids.PseudoGaussNodes — Type
struct PseudoGaussNodes{M,O} <: AbstractNestedNodesPseudo-Gaussian nested node family with measure M and storage order O.
UnifiedSparseGrids.QuadratureRule — Type
A concrete 1D quadrature rule.
UnifiedSparseGrids.RecursiveLayout — Type
Recursive (pseudorecursive) coefficient order.
This is the coefficient ordering induced by the package's dimension-recursive traversal.
UnifiedSparseGrids.ScatteredPoints — Type
Scattered (unstructured) points.
Points are stored as a D×M matrix where each column is one point.
UnifiedSparseGrids.SparseEvalOp — Type
Linear operator wrapper for an evaluation plan.
UnifiedSparseGrids.SparseGrid — Type
Sparse grid container.
A SparseGrid stores only its specification (SparseGridSpec). Layouts are views over the same coefficient set and are selected explicitly when iterating.
UnifiedSparseGrids.SparseGridSpec — Method
Build a SparseGridSpec using the same 1D axis family in every dimension.
UnifiedSparseGrids.SparseGridSpec — Method
Build a SparseGridSpec with potentially different 1D axis families per dimension.
UnifiedSparseGrids.SubspaceLayout — Type
Subspace (block) coefficient order.
Coefficients are grouped by hierarchical increment blocks indexed by refinement vectors r = (r_1,\ldots,r_D). Each block is stored contiguously as a tensor-product block, and the blocks are concatenated in a deterministic (sum, colex) order.
UnifiedSparseGrids.TensorOp — Type
struct TensorOp{D,Ops<:Tuple} <: AbstractTensorOp{D}One full sweep storing one line operator per physical dimension.
UnifiedSparseGrids.TensorProductPoints — Type
Tensor-product structured points, represented as a tuple of 1D grids.
UnifiedSparseGrids.TransferPlan — Type
Plan for transferring vectors between a small grid and a big grid.
The plan stores a map from indices in the small grid traversal into indices in the big grid traversal.
This is intended for cheap gather/scatter operations when traverse(grid_small) is an ordered subsequence of traverse(grid_big) up to a coordinate mapping.
UnifiedSparseGrids.UnitIntervalMeasure — Type
struct UnitIntervalMeasure <: AbstractMeasureUniform measure on [0, 1].
UnifiedSparseGrids.UpDownTensorOp — Type
struct UpDownTensorOp{D,OpsT,LOpsT,UOpsT} <: AbstractTensorOp{D}Tensor operator evaluated as a sum of triangular tensor terms from per-dimension L + U splits.
UnifiedSparseGrids.UpDownTensorOp — Method
UpDownTensorOp(ops; omit_dim=1)Construct an UpDownTensorOp by pre-splitting each dimension into lower and upper factors.
omit_dim == 0 keeps all split dimensions in the term expansion. 1 <= omit_dim <= D omits that physical dimension from the split and instead applies the unsplit line operator in that dimension.
UnifiedSparseGrids.WeightedTensorTerm — Type
A weighted tensor-product term in a tensor-sum operator.
UnifiedSparseGrids.ZeroLineOp — Type
struct ZeroLineOp <: AbstractLineOpZero line operator that maps every input fiber to zeros.
UnifiedSparseGrids.ForwardTransform — Method
ForwardTransform(::Val{D})
ForwardTransform(D)Return the forward sparse-grid modal transform on D dimensions.
UnifiedSparseGrids.InverseTransform — Method
InverseTransform(::Val{D})
InverseTransform(D)Return the inverse sparse-grid modal transform on D dimensions.
UnifiedSparseGrids.active_local — Method
Return the (0-based) local indices in level ℓ with nonzero basis value at x.
For most local bases (hat / piecewise polynomial) this is either empty or a singleton tuple.
UnifiedSparseGrids.apply_lastdim_cycled! — Method
Convenience overload: build a temporary CyclicLayoutPlan and apply.
UnifiedSparseGrids.apply_lastdim_cycled! — Method
apply_lastdim_cycled!(dest, src, grid, op, plan)
apply_lastdim_cycled!(dest, src, grid, op)Apply op along the last storage dimension and write the result in the next cyclic orientation.
UnifiedSparseGrids.apply_line! — Method
Apply an in-place line operator on a single fiber.
In-place line ops may still take an optional per-refinement plan (see lineplan).
The work argument is a caller-provided scratch buffer (same length as buf). Thread-safe planned operators must not mutate internal scratch; use work instead.
UnifiedSparseGrids.apply_line! — Method
apply_line!(outbuf, op, inp, work, nodes, level, plan)
apply_line!(op, buf, work, nodes, level, plan)Apply one line operator to a single fiber, using work as caller-owned scratch.
UnifiedSparseGrids.apply_unidirectional! — Method
apply_unidirectional!(u, grid, op, plan)
apply_unidirectional!(u, grid, op)Apply a line, tensor, composite, or UpDown operator to u using cyclic unidirectional sweeps.
For UpDownTensorOp, the backend is chosen automatically from the number of effective split terms: if Threads.threadpoolsize(:default) > 1 and 2*nterms >= pool, term-level parallelism is used; otherwise fiber-level parallelism is used.
UnifiedSparseGrids.as_linear_operator — Method
Wrap a TensorSumMatVec as a LinearOperators.LinearOperator.
The returned operator uses the 5-argument mul! protocol:
y ← α*A*x + β*y.UnifiedSparseGrids.bitrev — Method
bitrev(j, m) -> IntReverse the lowest m bits of the nonnegative integer j.
UnifiedSparseGrids.bitrevperm — Method
bitrevperm(N) -> Vector{Int}Return the radix-2 bit-reversal permutation of length N.
UnifiedSparseGrids.blocksize — Method
blocksize(axis::AbstractAxisFamily, r::Integer)Return the number of entries in the increment block added at refinement level r.
UnifiedSparseGrids.compose — Method
compose(a, b)Compose two line or tensor operators sequentially.
UnifiedSparseGrids.cycle_last_to_front — Method
cycle_last_to_front(perm, k)Return the k-step last-to-front cyclic rotation of perm.
UnifiedSparseGrids.cycle_last_to_front — Method
cycle_last_to_front(perm)Return the one-step cyclic rotation (p₁, …, p_D) -> (p_D, p₁, …, p_{D-1}).
UnifiedSparseGrids.delta_contribution — Method
Tensor-difference quadrature contribution and work stats for Δ_r.
Returns (acc, nevals, work).
UnifiedSparseGrids.delta_count — Method
delta_count(axis::AbstractUnivariateNodes, r::Integer)Return the number of new points added at refinement level r.
UnifiedSparseGrids.dim — Method
Spatial dimension of the index set.
UnifiedSparseGrids.each_combination_subproblem — Method
Enumerate full-grid subproblems for the sparse grid combination technique.
For dimension d and level parameter n, this returns the collection of full-tensor refinement-cap vectors L and their integer weights.
The combination layers are grouped by |L|₁:
|L|₁ = n + d - 1has weight+binomial(d-1, 0)|L|₁ = n + d - 2has weight-binomial(d-1, 1)- …
|L|₁ = nhas weight(-1)^(d-1) * binomial(d-1, d-1)
Keyword arguments:
cap: optional per-dimension upper bound onL(isotropicIntegerorNTuple{d}/SVector{d}cap).
Notes:
This function uses the package's 0-based level convention.
UnifiedSparseGrids.each_lastdim_fiber — Method
each_lastdim_fiber(grid, perm)Iterate the last-dimension fibers of grid in the cyclic orientation perm.
UnifiedSparseGrids.each_lastdim_fiber — Method
each_lastdim_fiber(spec)
each_lastdim_fiber(grid, perm)
each_lastdim_fiber(grid)Iterate the contiguous last-dimension fibers of a sparse-grid specification or grid.
UnifiedSparseGrids.each_lastdim_fiber — Method
each_lastdim_fiber(grid)Iterate the last-dimension fibers of grid in the identity orientation.
UnifiedSparseGrids.embed! — Method
Embed a subgrid vector into a covering grid vector (missing entries set to zero).
This is a convenience wrapper around the internal scatter kernel.
plan must be a TransferPlan from the small grid to the big grid.
UnifiedSparseGrids.eval_local — Method
Evaluate a local basis function (identified by ℓ and 0-based local) at x.
UnifiedSparseGrids.evaluate! — Method
Evaluate into a preallocated output vector.
UnifiedSparseGrids.evaluate! — Method
In-place version of evaluate(grid, f).
UnifiedSparseGrids.evaluate — Method
Allocate-and-return evaluation.
UnifiedSparseGrids.evaluate — Method
Sample a function f on the sparse grid points.
The returned vector is ordered consistently with traverse(grid). f is called with an SVector{D,T}.
UnifiedSparseGrids.integrate_adaptive — Method
Dimension-adaptive sparse quadrature over a static admissibility envelope.
Returns (integral, state) where state follows the Gerstner–Griebel active/old semantics:
integralalready includes contributions from both active and old indices,etais the additive estimate over the active set only,acceptedrecords activation order, andfrontier_popsrecords the order in which active indices are moved to old.
UnifiedSparseGrids.is_nested — Method
is_nested(axis::AbstractUnivariateNodes) -> BoolReturn true when axis is nested across refinement levels.
UnifiedSparseGrids.jacobi_precond — Method
Construct a Jacobi (diagonal) preconditioner from a diagonal vector.
Zero diagonal entries are treated as fixed-0 dofs: their inverse is set to zero.
UnifiedSparseGrids.legendre_to_dirichlet! — Method
Map Legendre coefficients c to Dirichlet-basis coefficients u.
This assumes c represents a function in the span of {L_k - L_{k+2}}.
The output u has length length(c) - 2.
UnifiedSparseGrids.lineop — Method
lineop(op, d)Return the line operator applied in physical dimension d.
UnifiedSparseGrids.lineop_style — Method
lineop_style(::Type{<:AbstractLineOp})Return the storage style trait of a line operator type.
UnifiedSparseGrids.lineops — Method
lineops(op)Return the tuple of constituent line operators of op.
UnifiedSparseGrids.lineplan — Method
lineplan(op, axis, rmax, ::Type{T})Build the cached per-refinement plan vector for op on axis up to level rmax.
UnifiedSparseGrids.lineplan — Method
lineplan(op::LineBandedOp, axis::AbstractUnivariateNodes, rmax::Integer, ::Type{T}) where {T<:Number}Build a cached vector of banded principal-prefix views for LineBandedOp. The family function f(n, T) must return a square BandedMatrices.AbstractBandedMatrix of size n × n, and smaller levels reuse leading principal banded views.
UnifiedSparseGrids.lineplan — Method
lineplan(op::LineDiagonalOp, axis::AbstractUnivariateNodes, rmax::Integer, ::Type{T}) where {T<:Number}Build a cached vector of diagonal-data prefixes for LineDiagonalOp. The family function f(n, T) must return a vector-like container of length n, and smaller levels reuse prefix views d[1:m].
UnifiedSparseGrids.measure — Method
measure(axis::AbstractUnivariateNodes)Return the reference measure associated with axis.
UnifiedSparseGrids.ncoeff — Method
Number of coefficients for basis at axis family axis and refinement index r.
Default: matches the axis size, i.e. totalsize(axis, r).
UnifiedSparseGrids.needs_plan — Method
needs_plan(::Type{<:AbstractLineOp})Return Val(true) when a line operator family requires cached per-refinement plans.
UnifiedSparseGrids.newpoints — Method
newpoints(axis::AbstractAxisFamily, r::Integer)Return the points first introduced at refinement level r.
UnifiedSparseGrids.nodeorder — Method
nodeorder(axis::AbstractUnivariateNodes)Return the one-dimensional storage order associated with axis.
UnifiedSparseGrids.npoints — Method
npoints(axis::AbstractAxisFamily, r::Integer)Alias for totalsize on node-based axis families.
UnifiedSparseGrids.plan_evaluate — Method
Create an evaluation plan.
bases may be a single univariate basis (used for all dimensions) or an explicit NTuple{D}.
backend=:auto selects:
:unidirectionalforTensorProductPoints,:pseudorecursiveforScatteredPointswith allLocalSupport()bases,:naiveotherwise.
UnifiedSparseGrids.plot_combination_technique — Function
Plot the combination-technique block structure (requires using Plots).
UnifiedSparseGrids.plot_sparse_grid — Function
Plot the sparse grid point set (requires using Plots to activate the extension).
UnifiedSparseGrids.plot_sparse_indexset — Function
Plot the sparse grid index set in integer coordinates (requires using Plots).
UnifiedSparseGrids.plot_subspace_layout — Function
Plot the 2D subspace layout (requires using Plots to activate the extension).
UnifiedSparseGrids.points — Method
points(axis::AbstractAxisFamily, r::Integer)Return all points in the refinement family X_r.
UnifiedSparseGrids.qdegree — Method
Degree/exactness metadata of a 1D quadrature family at refinement index r.
UnifiedSparseGrids.qdiffrule — Method
Incremental 1D difference rule Δ_r.
For non-nested families the default is the full rule qrule(Q, r); nested families should specialize this to return the true incremental difference rule.
UnifiedSparseGrids.qmeasure — Method
Optional measure/weight associated with a quadrature family.
UnifiedSparseGrids.qrule — Method
Full 1D quadrature rule at refinement index r.
UnifiedSparseGrids.qsize — Method
Number of points in the 1D quadrature rule at refinement index r.
UnifiedSparseGrids.refinement_caps — Method
Return the per-dimension refinement caps of an index set.
UnifiedSparseGrids.refinement_caps — Method
Per-index-set refinement-cap vector used to bound iteration.
UnifiedSparseGrids.refinement_index — Method
refinement_index(axis::AbstractAxisFamily, n::Integer)Return the refinement index r such that totalsize(axis, r) == n.
UnifiedSparseGrids.restrict! — Method
Restrict values from a covering grid vector into a subgrid vector.
This is a convenience wrapper around the internal gather kernel.
plan must be a TransferPlan from the small grid to the big grid.
UnifiedSparseGrids.subgrid_index_map — Method
Return an index map from a subgrid to a covering grid.
map[i] is the index in grid_big corresponding to index i in grid_small.
This is valid when traverse(grid_small) produces an ordered subsequence of traverse(grid_big).
The returned indices refer to the recursive-layout ordering of each grid.
UnifiedSparseGrids.support_style — Method
Return a trait describing whether the basis functions have global or local support.
UnifiedSparseGrids.tensorize — Method
tensorize(op, ::Val{D})Broadcast a line operator to all D physical dimensions.
UnifiedSparseGrids.totalsize — Method
totalsize(axis::AbstractAxisFamily, r::Integer)Return the total number of entries in the refinement family X_r.
UnifiedSparseGrids.traverse — Method
Apply f to every sparse grid coordinate produced by traverse.
UnifiedSparseGrids.traverse — Method
Iterate sparse grid coordinates in a chosen layout.
This iterator emits pseudo-recursive coordinates coords::SVector{D,Int}: for each physical dimension d, the coordinate is the 1-based position in the hierarchical concatenation of refinement blocks.
Use layout=RecursiveLayout() for the package's native recursive order, and layout=SubspaceLayout() for contiguous subspace blocks.
UnifiedSparseGrids.vandermonde — Method
Construct a basis evaluation (Vandermonde) matrix.
V has size (length(x), ncoeff) with entries
V[i,k] = ϕ_{k-1}(x[i]), k = 1..ncoeff.