snl_fei::BlockMatrixTraits< T > Struct Template Reference

#include <snl_fei_BlockMatrixTraits.hpp>

List of all members.

Static Public Member Functions

static const char * typeName ()
static int putScalar (T *, double)
static int getRowLength (T *, int, int &)
static int getPointRowLength (T *, int, int &)
static int copyOutRow (T *, int, int, int, int *, int *, double *, int, int &)
static int copyOutPointRow (T *, int, int, int, double *, int *, int &)
static int sumIn (T *, int, int, int, const int *, const int *, int, const double *)
static int copyIn (T *, int, int, int, const int *, const int *, int, const double *)
static int sumIn (T *, int, int, int, const int *, const int *, const int *, const double *const *)
static int copyIn (T *, int, int, int, const int *, const int *, const int *, const double *const *)
static int globalAssemble (T *)


Detailed Description

template<typename T>
struct snl_fei::BlockMatrixTraits< T >

Internal implementation block-entry matrix traits. Define a "template" for accessing matrix data. Provide function stubs for default type "T", which will catch the use of any matrix type for which specialized traits have not been defined.

Definition at line 22 of file snl_fei_BlockMatrixTraits.hpp.


Member Function Documentation

template<typename T>
static const char* snl_fei::BlockMatrixTraits< T >::typeName (  )  [inline, static]

Return a string type-name for the underlying matrix

Definition at line 25 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::putScalar ( T *  ,
double   
) [inline, static]

Set a specified scalar value throughout the matrix.

Definition at line 30 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::getRowLength ( T *  ,
int  ,
int &   
) [inline, static]

Given a global (zero-based) row number, query the length of that row.

Definition at line 35 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::getPointRowLength ( T *  ,
int  ,
int &   
) [inline, static]

Given a global (zero-based) point-row number, query the length of that row.

Definition at line 41 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::copyOutRow ( T *  ,
int  ,
int  ,
int  ,
int *  ,
int *  ,
double *  ,
int  ,
int &   
) [inline, static]

Given a global (zero-based) row number, pass out a copy of the contents of that row.

Parameters:
mat 
row 
numBlkCols Length of the user-allocated arrays indices and colDims.
rowDim Number of point-equations associated with this block-row.
blkCols User-allocated array which will hold column-indices on output.
colDims User-allocated array which will hold the number of point- indices per block-column.
coefs User-allocated array of arrays. First dimension (number of arrays) must be 'len'. i-th array will hold the coefficients from the i-th block-entry in this matrix row, packed in column-major order as a 1D list.
coefsLen Length of the user-allocated coefs array.
blkRowLength Output value, will be the length of the matrix row, (number of blk-cols) which may be more or less than the length of the input 'numBlkCols'. If blkRowLength is less than numBlkCols, then only 'blkRowLength' positions in the above array arguments will be referenced. If blkRowLength is greater than numBlkCols, then only numBlkCols positions will be referenced.
Returns:
error-code 0 if successful. Non-zero return-value may indicate that the specified row is not locally owned.

Definition at line 67 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::copyOutPointRow ( T *  ,
int  ,
int  ,
int  ,
double *  ,
int *  ,
int &   
) [inline, static]

Given a global (zero-based) point-row number, pass out a copy of the contents of that row.

Parameters:
mat 
firstLocalOffset First point-equation that is owned by the local processor.
row Global equation-number of the point-row being requested.
len Length of the user-allocated arrays coefs and indices.
coefs User-allocated array which will hold matrix coefficients on output.
indices User-allocated array which will hold column-indices on output.
rowLength Output value, will be the length of the matrix row, which may be more or less than the length of the above user-allocated arrays.
Returns:
error-code 0 if successful. Non-zero return-value may indicate that the specified row is not locally owned.

Definition at line 95 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::sumIn ( T *  ,
int  ,
int  ,
int  ,
const int *  ,
const int *  ,
int  ,
const double *   
) [inline, static]

Sum a flat Fortran-style array of coefficient data into the underlying matrix.

Definition at line 105 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::copyIn ( T *  ,
int  ,
int  ,
int  ,
const int *  ,
const int *  ,
int  ,
const double *   
) [inline, static]

Copy a flat Fortran-style array of coefficient data into the underlying matrix.

Definition at line 118 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::sumIn ( T *  ,
int  ,
int  ,
int  ,
const int *  ,
const int *  ,
const int *  ,
const double *const *   
) [inline, static]

Sum a C-style table of coefficient data into the underlying matrix.

Definition at line 130 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::copyIn ( T *  ,
int  ,
int  ,
int  ,
const int *  ,
const int *  ,
const int *  ,
const double *const *   
) [inline, static]

Copy (replacing any already-existing values at the specified locations) a C-style table of coefficient data into the underlying matrix.

Definition at line 141 of file snl_fei_BlockMatrixTraits.hpp.

template<typename T>
static int snl_fei::BlockMatrixTraits< T >::globalAssemble ( T *   )  [inline, static]

Have the underlying matrix perform any global synchronization or assembly that needs to be done after all data has been input.

Definition at line 152 of file snl_fei_BlockMatrixTraits.hpp.


The documentation for this struct was generated from the following file:
Generated on Mon Jul 12 09:31:45 2010 for FEI by  doxygen 1.4.7