Class InterpolationBase
Defined in File interpolation_base.h
Inheritance Relationships
Derived Types
public pcms::MLSMeshInterpolation(Class MLSMeshInterpolation)public pcms::MLSPointCloudInterpolation(Class MLSPointCloudInterpolation)
Class Documentation
-
class InterpolationBase
Pure virtual base class for interpolation methods.
Provides external interface for interpolation methods.
Subclassed by pcms::MLSMeshInterpolation, pcms::MLSPointCloudInterpolation
Public Functions
-
virtual ~InterpolationBase() = default
-
virtual void eval(pcms::Rank1View<double, pcms::HostMemorySpace> source_field, pcms::Rank1View<double, pcms::HostMemorySpace> target_field) = 0
Evaluate the interpolation.
Note
User is responsible for ensuring that the source and target fields are sustained during the evaluation. The size of the source and target fields must match the sizes returned by getSourceSize() and getTargetSize() respectively.
- Parameters:
source_field – The field to interpolate from
target_field – The field to interpolate to
-
virtual size_t getSourceSize() const = 0
Get the size of the source field.
- Returns:
size_t The size of the source field
-
virtual size_t getTargetSize() const = 0
Get the size of the target field.
- Returns:
size_t The size of the target field
-
virtual ~InterpolationBase() = default