Zoltan2  Version of the Day
Public Member Functions | List of all members
Zoltan2::coordinateModelPartBox< scalar_t, partId_t > Class Template Reference

coordinateModelPartBox Class, represents the boundaries of the box which is a result of a geometric partitioning algorithm. More...

#include <Zoltan2_CoordinatePartitioningGraph.hpp>

Public Member Functions

 coordinateModelPartBox (partId_t pid, int dim_)
 Constructor. More...
 
 coordinateModelPartBox (partId_t pid, int dim_, scalar_t *lmi, scalar_t *lma)
 Constructor deep copy of the maximum and minimum boundaries. More...
 
 coordinateModelPartBox (const coordinateModelPartBox< scalar_t, partId_t > &other)
 Copy Constructor deep copy of the maximum and minimum boundaries. More...
 
 ~coordinateModelPartBox ()
 Destructor. More...
 
void setpId (partId_t pid)
 function to set the part id More...
 
partId_t getpId () const
 function to get the part id More...
 
int getDim () const
 function to set the dimension More...
 
scalar_t * getlmins () const
 function to get minimum values along all dimensions More...
 
scalar_t * getlmaxs () const
 function to get maximum values along all dimensions More...
 
std::vector< partId_t > * getGridIndices ()
 function to get the indices of the buckets that the part is inserted to More...
 
std::set< partId_t > * getNeighbors ()
 function to get the indices of the neighboring parts. More...
 
bool isNeighborWith (const coordinateModelPartBox< scalar_t, partId_t > &other)
 function to check if two boxes are neighbors. More...
 
void addNeighbor (partId_t nIndex)
 function to add a new neighbor to the neighbor list. More...
 
bool isAlreadyNeighbor (partId_t nIndex)
 function to check if a given part is already in the neighbor list. More...
 
void setMinMaxHashIndices (scalar_t *minMaxBoundaries, scalar_t *sliceSizes, partId_t numSlicePerDim)
 function to obtain the min and max hash values along all dimensions. More...
 
void print ()
 function to print the boundaries. More...
 
void updateMinMax (scalar_t newBoundary, int isMax, int dimInd)
 function to update the boundary of the box. More...
 
template<typename tt >
std::string toString (tt obj)
 
void writeGnuPlot (std::ofstream &file, std::ofstream &mm)
 function for visualization. More...
 

Detailed Description

template<typename scalar_t, typename partId_t>
class Zoltan2::coordinateModelPartBox< scalar_t, partId_t >

coordinateModelPartBox Class, represents the boundaries of the box which is a result of a geometric partitioning algorithm.

Definition at line 71 of file Zoltan2_CoordinatePartitioningGraph.hpp.

Constructor & Destructor Documentation

template<typename scalar_t, typename partId_t>
Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::coordinateModelPartBox ( partId_t  pid,
int  dim_ 
)
inline

Constructor.

Definition at line 94 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::coordinateModelPartBox ( partId_t  pid,
int  dim_,
scalar_t *  lmi,
scalar_t *  lma 
)
inline

Constructor deep copy of the maximum and minimum boundaries.

Definition at line 117 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::coordinateModelPartBox ( const coordinateModelPartBox< scalar_t, partId_t > &  other)
inline

Copy Constructor deep copy of the maximum and minimum boundaries.

Definition at line 141 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::~coordinateModelPartBox ( )
inline

Destructor.

Definition at line 165 of file Zoltan2_CoordinatePartitioningGraph.hpp.

Member Function Documentation

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::setpId ( partId_t  pid)
inline

function to set the part id

Definition at line 175 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
partId_t Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getpId ( ) const
inline

function to get the part id

Definition at line 180 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
int Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getDim ( ) const
inline

function to set the dimension

Definition at line 187 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
scalar_t* Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getlmins ( ) const
inline

function to get minimum values along all dimensions

Definition at line 192 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
scalar_t* Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getlmaxs ( ) const
inline

function to get maximum values along all dimensions

Definition at line 197 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
std::vector<partId_t>* Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getGridIndices ( )
inline

function to get the indices of the buckets that the part is inserted to

Definition at line 204 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
std::set<partId_t>* Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::getNeighbors ( )
inline

function to get the indices of the neighboring parts.

Definition at line 210 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
bool Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::isNeighborWith ( const coordinateModelPartBox< scalar_t, partId_t > &  other)
inline

function to check if two boxes are neighbors.

Definition at line 216 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::addNeighbor ( partId_t  nIndex)
inline

function to add a new neighbor to the neighbor list.

Definition at line 246 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
bool Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::isAlreadyNeighbor ( partId_t  nIndex)
inline

function to check if a given part is already in the neighbor list.

Definition at line 251 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::setMinMaxHashIndices ( scalar_t *  minMaxBoundaries,
scalar_t *  sliceSizes,
partId_t  numSlicePerDim 
)
inline

function to obtain the min and max hash values along all dimensions.

Definition at line 263 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::print ( )
inline

function to print the boundaries.

Definition at line 328 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::updateMinMax ( scalar_t  newBoundary,
int  isMax,
int  dimInd 
)
inline

function to update the boundary of the box.

Definition at line 336 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
template<typename tt >
std::string Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::toString ( tt  obj)
inline

Definition at line 346 of file Zoltan2_CoordinatePartitioningGraph.hpp.

template<typename scalar_t, typename partId_t>
void Zoltan2::coordinateModelPartBox< scalar_t, partId_t >::writeGnuPlot ( std::ofstream &  file,
std::ofstream &  mm 
)
inline

function for visualization.

Definition at line 357 of file Zoltan2_CoordinatePartitioningGraph.hpp.


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