Skip to content

Points

All docstrings from Mantis.Points

Mantis.Points Module
julia
module Points

Contains all definitions of points used to evaluate geometries, function spaces, forms and any other objects.

source
Mantis.Points.AbstractPoints Type
julia
AbstractPoints{manifold_dim}

Supertype for all evaluable points.

Type parameters

  • manifold_dim: Dimension of the manifold where the points are evaluated.
source
Mantis.Points.CartesianPoints Type
julia
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: The CartesianIndices used to convert from linear to cartesian indexing.

  • lin_num_points::LI: The LinearIndices used to convert from cartesian to linear indexing.

source
Mantis.Points.PointSet Type
julia
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.
source
Mantis.Points.get_cart_num_points Method
julia
get_cart_num_points(points::CartesianPoints)

Returns the CartesianIndices used to convert from linear to cartesian indexing.

source
Mantis.Points.get_constituent_num_points Method
julia
get_constituent_num_points(
  points::CartesianPoints{manifold_dim}
) where {manifold_dim}

Returns the number of constituent points per manifold dimension.

source
Mantis.Points.get_constituent_points Method
julia
get_constituent_points(points::P) where {P <: AbstractPoints}

Returns the constituent points of points per manifold dimension.

source
Mantis.Points.get_lin_num_points Method
julia
get_cart_num_points(points::CartesianPoints)

Returns the LinearIndices used to convert from cartesian to linear indexing.

source
Mantis.Points.get_manifold_dim Method
julia
get_manifold_dim(points::AbstractPoints{manifold_dim}) where {manifold_dim}

Returns the manifold dimension of the evaluable points.

source
Mantis.Points.get_num_points Method
julia
get_num_points(points::P) where {manifold_dim, P <: AbstractPoints{manifold_dim}}

Returns the number of of evaluable points in the given point structure.

source
Mantis.Points.scale_and_shift_points Method
julia
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
julia
`points`.
source