escript  Revision_
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
paso::Distribution Struct Reference

describes the distribution of a vector stored on the local process More...

#include <Distribution.h>

Public Member Functions

 Distribution (const esysUtils::JMPI &mpiInfo, const index_t *firstComponent, index_t m, index_t b)
 
 ~Distribution ()
 
index_t getFirstComponent () const
 
index_t getLastComponent () const
 
dim_t getGlobalNumComponents () const
 
dim_t getMyNumComponents () const
 
dim_t getMinGlobalComponents () const
 
dim_t getMaxGlobalComponents () const
 
dim_t numPositives (const double *x, dim_t block) const
 
double * createRandomVector (dim_t block) const
 

Public Attributes

index_tfirst_component
 
dim_t reference_counter
 
const esysUtils::JMPI mpi_info
 

Static Public Attributes

static double random_seed = .4142135623730951
 

Detailed Description

describes the distribution of a vector stored on the local process

Constructor & Destructor Documentation

paso::Distribution::Distribution ( const esysUtils::JMPI mpiInfo,
const index_t firstComponent,
index_t  m,
index_t  b 
)
inline

References first_component, and mpi_info.

paso::Distribution::~Distribution ( )
inline

References first_component.

Member Function Documentation

double* paso::Distribution::createRandomVector ( dim_t  block) const
inline
index_t paso::Distribution::getFirstComponent ( ) const
inline

References first_component, and mpi_info.

Referenced by createRandomVector(), and getMyNumComponents().

dim_t paso::Distribution::getGlobalNumComponents ( ) const
inline
index_t paso::Distribution::getLastComponent ( ) const
inline

References first_component, and mpi_info.

Referenced by createRandomVector(), and getMyNumComponents().

dim_t paso::Distribution::getMaxGlobalComponents ( ) const
inline

References first_component, and mpi_info.

Referenced by getGlobalNumComponents().

dim_t paso::Distribution::getMinGlobalComponents ( ) const
inline

References first_component.

Referenced by getGlobalNumComponents().

dim_t paso::Distribution::getMyNumComponents ( ) const
inline

References getFirstComponent(), and getLastComponent().

Referenced by numPositives().

dim_t paso::Distribution::numPositives ( const double *  x,
dim_t  block 
) const
inline

Member Data Documentation

index_t* paso::Distribution::first_component
const esysUtils::JMPI paso::Distribution::mpi_info
double paso::Distribution::random_seed = .4142135623730951
static

Referenced by createRandomVector().

dim_t paso::Distribution::reference_counter

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