STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::mesh_partition_1d< Dim, GView, Precision > Struct Template Reference

Partition a mesh along one dimension. More...

Public Member Functions

 mesh_partition_1d (GView const &graph_vw)
 
result_type operator() (size_t const &num_partitions, geom_vector< Dim, Precision > const &axis) const
 

Public Types

typedef std::vector< size_t > domain_type
 
typedef std::vector< domain_type > result_type
 
typedef geom_vector< Dim, Precision >::element_type element_type
 
typedef std::pair< element_type, size_t > projection_pair_type
 

Detailed Description

template<int Dim, typename GView, typename Precision = double>
struct stapl::mesh_partition_1d< Dim, GView, Precision >

Partition a mesh along one dimension.

Template Parameters
Dimmesh dimension.
GViewtype of mesh view.
Precisiontype of mesh vertex coordinates.

Constructor & Destructor Documentation

◆ mesh_partition_1d()

template<int Dim, typename GView , typename Precision = double>
stapl::mesh_partition_1d< Dim, GView, Precision >::mesh_partition_1d ( GView const &  graph_vw)
Parameters
graph_vwmesh view to be partitioned.

Member Function Documentation

◆ operator()()

template<int Dim, typename GView , typename Precision = double>
result_type stapl::mesh_partition_1d< Dim, GView, Precision >::operator() ( size_t const &  num_partitions,
geom_vector< Dim, Precision > const &  axis 
) const
Parameters
num_partitionsnumber of partitions.
axisaxis for projecting cells on one dimension.

The documentation for this struct was generated from the following file: