SkelGIS  3.0
skelgis::DMatrix_base< T > Struct Template Reference

base template Distributed Matrix Class More...

#include <dmatrix_impl.hpp>

Inheritance diagram for skelgis::DMatrix_base< T >:
skelgis::DMatrix_impl< T, R, line > skelgis::DMatrix_impl< T, 0, false > skelgis::DMatrix_impl< T, 0, true > skelgis::DMatrix_impl< T, R, false >

List of all members.

Public Attributes

T * data
 data of the distributed matrix
int col
 Column and row positions for the current process in the general data distribution.
int row
int cols
 Total number of columns and rows in the general data distribution.
int rows
HEADER head
 Header defining the global matrix before parallel distribution.
HEADER loc_head
 Header defining the local matrix of the current process after data distribution.
bool local

Protected Member Functions

 DMatrix_base ()
 default constructor of the distributed matrix interface
 ~DMatrix_base ()
 destructor of the distributed matrix

Protected Attributes

int remainderh
 To get the height and the width of the last column and the last row.
int remainderw

Detailed Description

template<class T>
struct skelgis::DMatrix_base< T >

base template Distributed Matrix Class

This template class defines the base distributed matrix. Every DMatrix_impl class inherit from this one.

Template Parameters:
Tis the type of data in the matrix

Definition at line 30 of file dmatrix_impl.hpp.


Member Data Documentation

template<class T >
int skelgis::DMatrix_base< T >::col

Column and row positions for the current process in the general data distribution.

The data distribution is made along height and/or width, each process is associated to a pair (col,row) in this data distribution. If the distribution is line=true, the col=0 for all processes.

Definition at line 44 of file dmatrix_impl.hpp.

template<class T >
T* skelgis::DMatrix_base< T >::data

data of the distributed matrix

In this table are stored the data of the distributed matrix.

Definition at line 38 of file dmatrix_impl.hpp.

template<class T >
bool skelgis::DMatrix_base< T >::local

if the DMatrix is local to one process

Definition at line 52 of file dmatrix_impl.hpp.

template<class T >
int skelgis::DMatrix_base< T >::remainderh [protected]

To get the height and the width of the last column and the last row.

Because the data division along height and width are not always divisible by the number of processes, variables to remind the size of the last row and of the last column has to be defined.

Definition at line 67 of file dmatrix_impl.hpp.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Defines