Points
All docstrings from Mantis.Points
Mantis.Points Module
module PointsContains all definitions of points used to evaluate geometries, function spaces, forms and any other objects.
sourceMantis.Points.AbstractPoints Type
AbstractPoints{manifold_dim}Supertype for all evaluable points.
Type parameters
manifold_dim: Dimension of the manifold where the points are evaluated.
Mantis.Points.CartesianPoints Type
CartesianPoints{manifold_dim, T, CI, LI} <: AbstractPoints{manifold_dim}Represents a set of points constructed from manifold_dim lists of uni-dimensional points. Conceptually, this structure combines the functionalities of CartesianIndices and Iterators.product.
Fields
constituent_points::NTuple{manifold_dim, T}: The set of points per manifold dimension.cart_num_points::CI: TheCartesianIndicesused to convert from linear to cartesian indexing.lin_num_points::LI: TheLinearIndicesused to convert from cartesian to linear indexing.
Mantis.Points.PointSet Type
PointSet{manifold_dim, T} <: AbstractPoints{manifold_dim}Represents a set of points in manifold_dim dimensions.
Fields
constituent_points::NTuple{manifold_dim, T}: The set of points per manifold dimension.
Mantis.Points.get_cart_num_points Method
get_cart_num_points(points::CartesianPoints)Returns the CartesianIndices used to convert from linear to cartesian indexing.
Mantis.Points.get_constituent_num_points Method
get_constituent_num_points(
points::CartesianPoints{manifold_dim}
) where {manifold_dim}Returns the number of constituent points per manifold dimension.
sourceMantis.Points.get_constituent_points Method
get_constituent_points(points::P) where {P <: AbstractPoints}Returns the constituent points of points per manifold dimension.
Mantis.Points.get_lin_num_points Method
get_cart_num_points(points::CartesianPoints)Returns the LinearIndices used to convert from cartesian to linear indexing.
Mantis.Points.get_manifold_dim Method
get_manifold_dim(points::AbstractPoints{manifold_dim}) where {manifold_dim}Returns the manifold dimension of the evaluable points.
Mantis.Points.get_num_points Method
get_num_points(points::P) where {manifold_dim, P <: AbstractPoints{manifold_dim}}Returns the number of of evaluable points in the given point structure.
Mantis.Points.scale_and_shift_points Method
scale_and_shift_points(
points::P, scalings::S, translations::T
) where {
manifold_dim,
P <: AbstractPoints{manifold_dim},
S <: NTuple{manifold_dim, Real},
T <: NTuple{manifold_dim, Real},
}Applies an affine map defined by scalings and translations to each point in points.
Arguments
points::P: The set of points.scalings::S: The scaling of the affine map.translations::T: The translation of the affine map.
Returns
transformed_points::P: The set of transformed points of the same type as the original
`points`.