1 #ifndef _COMPADRE_OPERATORS_HPP_ 2 #define _COMPADRE_OPERATORS_HPP_ 6 #define make_sampling_functional(input, output, targets, nontrivial, transform) SamplingFunctional(input, output, targets, nontrivial, transform, __COUNTER__) 67 KOKKOS_INLINE_FUNCTION
69 constexpr
int TargetOutputTensorRank[] {
91 return TargetOutputTensorRank[index];
112 KOKKOS_INLINE_FUNCTION
114 constexpr
int ActualReconstructionSpaceRank[] = {
121 return ActualReconstructionSpaceRank[index];
148 KOKKOS_INLINE_FUNCTION
150 const bool use_target_site_weights_,
const bool nontrivial_nullspace_,
151 const int transform_type_,
const int id_) :
156 KOKKOS_INLINE_FUNCTION
161 KOKKOS_INLINE_FUNCTION
169 constexpr SamplingFunctional
Divergence-free vector polynomial basis.
Point evaluation of the curl of a curl of a vector (results in a vector)
constexpr SamplingFunctional FaceNormalIntegralSample
For integrating polynomial dotted with normal over an edge.
constexpr SamplingFunctional EdgeTangentAverageSample
For polynomial dotted with tangent.
Standard GMLS problem type.
int output_rank
Rank of sampling functional output for each SamplingFunctional.
Integral values over cell using quadrature Supported on 2D faces in 3D problems (manifold) and 2D cel...
Point evaluation of the curl of a vector (results in a vector)
Point evaluation of the laplacian of each component of a vector.
Point evaluation of the partial with respect to y of a scalar.
constexpr SamplingFunctional ManifoldVectorPointSample
Point evaluations of the entire vector source function (but on a manifold, so it includes a transform...
Point evaluation of a vector (reconstructs entire vector at once, requiring a ReconstructionSpace hav...
a 2D manifold in 3D in local coordinates would have 2 components for a vector
Neumann Gradient Scalar Type.
SamplingTransformType
Describes the SamplingFunction relationship to targets, neighbors.
CoordinatesType
Coordinate type for input and output format of vector data on manifold problems.
KOKKOS_INLINE_FUNCTION constexpr bool operator!=(const SamplingFunctional sf) const
constexpr SamplingFunctional VaryingManifoldVectorPointSample
For integrating polynomial dotted with normal over an edge.
Each target applies a different data transform, but the same to each neighbor.
KOKKOS_INLINE_FUNCTION int getActualReconstructionSpaceRank(const int &index)
Number of actual components in the ReconstructionSpace.
Each target applies a different transform for each neighbor.
bool use_target_site_weights
Whether or not the SamplingTensor acts on the target site as well as the neighbors.
constexpr SamplingFunctional StaggeredEdgeAnalyticGradientIntegralSample
Analytical integral of a gradient source vector is just a difference of the scalar source at neighbor...
Scalar polynomial basis centered at the target site and scaled by sum of basis powers e...
Solve GMLS problem on a manifold (will use QR or SVD to solve the resultant GMLS problem dependent on...
Should be the total count of all available target functionals.
Point evaluation of Gaussian curvature.
QR+Pivoting factorization performed on P*sqrt(w) matrix.
ProblemType
Problem type, that optionally can handle manifolds.
KOKKOS_INLINE_FUNCTION constexpr bool operator==(const SamplingFunctional sf) const
Point evaluation of a scalar.
int input_rank
Rank of sampling functional input for each SamplingFunctional.
constexpr SamplingFunctional StaggeredEdgeIntegralSample
Samples consist of the result of integrals of a vector dotted with the tangent along edges between ne...
Scalar basis reused as many times as there are components in the vector resulting in a much cheaper p...
Bernstein polynomial basis.
ReconstructionSpace
Space in which to reconstruct polynomial.
KOKKOS_INLINE_FUNCTION constexpr SamplingFunctional(const int input_rank_, const int output_rank_, const bool use_target_site_weights_, const bool nontrivial_nullspace_, const int transform_type_, const int id_)
Each neighbor for each target all apply the same transform.
WeightingFunctionType
Available weighting kernel function types.
constexpr SamplingFunctional FaceNormalAverageSample
For polynomial dotted with normal on edge.
Point evaluation of the laplacian of a scalar (could be on a manifold or not)
Point evaluation of the chained staggered Laplacian acting on VectorTaylorPolynomial basis + Staggere...
Point evaluation of the divergence of a vector (results in a scalar)
Integral value of vector dotted with normal direction Supported on 1D edges in 3D problems (2D-manifo...
Point evaluation of the gradient of a scalar.
constexpr SamplingFunctional EdgeTangentIntegralSample
For integrating polynomial dotted with tangent over an edge.
No action performed on data before GMLS target operation.
constexpr SamplingFunctional CellAverageSample
For polynomial integrated on cells.
DenseSolverType
Dense solver type.
Point evaluation of the partial with respect to z of a scalar.
Point evaluation of the partial with respect to x of a scalar.
KOKKOS_INLINE_FUNCTION int getTargetOutputTensorRank(const int &index)
Rank of target functional output for each TargetOperation Rank of target functional input for each Ta...
LU factorization performed on P^T*W*P matrix.
int transform_type
Describes the SamplingFunction relationship to targets, neighbors.
Average value of vector dotted with tangent directions Supported on 1D edges in 3D problems (2D-manif...
Integral value of vector dotted with tangent directions Supported on 1D edges in 3D problems (2D-mani...
constexpr SamplingFunctional PointSample
Available sampling functionals.
constexpr SamplingFunctional CellIntegralSample
For polynomial integrated on cells.
Average value of vector dotted with normal direction Supported on 1D edges in 3D problems (2D-manifol...
bool nontrivial_nullspace
Whether the SamplingFunctional + ReconstructionSpace results in a nontrivial nullspace.
a 2D manifold in 3D in ambient coordinates would have 3 components for a vector
Point evaluation of the gradient of a vector (results in a matrix, NOT CURRENTLY IMPLEMENTED) ...
#define make_sampling_functional(input, output, targets, nontrivial, transform)
Vector polynomial basis having # of components _dimensions, or (_dimensions-1) in the case of manifol...
constexpr SamplingFunctional VectorPointSample
Point evaluations of the entire vector source function.
Average values of a cell using quadrature Supported on 2D faces in 3D problems (manifold) and 2D cell...
TargetOperation
Available target functionals.
ConstraintType
Constraint type.