FEI Version of the Day
Loading...
Searching...
No Matches
fei::MatrixTraits< fei::LinearProblemManager > Struct Reference

#include <fei_MatrixTraits_LinProbMgr.hpp>

Inheritance diagram for fei::MatrixTraits< fei::LinearProblemManager >:

Static Public Member Functions

static const char * typeName ()
 
static int setValues (fei::LinearProblemManager *mat, double scalar)
 
static int getNumLocalRows (fei::LinearProblemManager *mat, int &numRows)
 
static int getRowLength (fei::LinearProblemManager *mat, int row, int &length)
 
static int copyOutRow (fei::LinearProblemManager *mat, int row, int len, double *coefs, int *indices)
 
static int putValuesIn (fei::LinearProblemManager *mat, int numRows, const int *rows, int numCols, const int *cols, const double *const *values, bool sum_into)
 
static int globalAssemble (fei::LinearProblemManager *mat)
 
static int matvec (fei::LinearProblemManager *mat, fei::Vector *x, fei::Vector *y)
 
static const char * typeName ()
 
static int setValues (fei::LinearProblemManager *mat, double scalar)
 
static int getNumLocalRows (fei::LinearProblemManager *mat, int &numRows)
 
static int getRowLength (fei::LinearProblemManager *mat, int row, int &length)
 
static int copyOutRow (fei::LinearProblemManager *mat, int row, int len, double *coefs, int *indices)
 
static int putValuesIn (fei::LinearProblemManager *mat, int numRows, const int *rows, int numCols, const int *cols, const double *const *values, bool sum_into)
 
static int globalAssemble (fei::LinearProblemManager *A)
 
static int matvec (fei::LinearProblemManager *A, fei::Vector *x, fei::Vector *y)
 

Detailed Description

Specialization for LinearProblemManager.

Definition at line 22 of file fei_MatrixTraits_LinProbMgr.hpp.

Member Function Documentation

◆ typeName() [1/2]

static const char * fei::MatrixTraits< fei::LinearProblemManager >::typeName ( )
inlinestatic

Return a string type-name for the underlying matrix

Definition at line 25 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ setValues() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::setValues ( fei::LinearProblemManager * mat,
double scalar )
inlinestatic

Set a specified scalar value throughout the matrix.

Definition at line 40 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ getNumLocalRows() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::getNumLocalRows ( fei::LinearProblemManager * mat,
int & numRows )
inlinestatic

Query the number of rows. This is expected to be the number of rows on the local processor.

Definition at line 49 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ getRowLength() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::getRowLength ( fei::LinearProblemManager * mat,
int row,
int & length )
inlinestatic

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

Definition at line 57 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ copyOutRow() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::copyOutRow ( fei::LinearProblemManager * mat,
int row,
int len,
double * coefs,
int * indices )
inlinestatic

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

Parameters
mat
row
lenLength of the user-allocated arrays coefs and indices.
coefsUser-allocated array which will hold matrix coefficients on output.
indicesUser-allocated array which will hold column-indices on output.
Returns
error-code 0 if successful. Non-zero return-value may indicate that the specified row is not locally owned.

Definition at line 76 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ putValuesIn() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::putValuesIn ( fei::LinearProblemManager * mat,
int numRows,
const int * rows,
int numCols,
const int * cols,
const double *const * values,
bool sum_into )
inlinestatic

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

Definition at line 84 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ globalAssemble() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::globalAssemble ( fei::LinearProblemManager * mat)
inlinestatic

Perform any necessary internal communications/synchronizations or other operations appropriate at end of data input.

Definition at line 98 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ matvec() [1/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::matvec ( fei::LinearProblemManager * mat,
fei::Vector * x,
fei::Vector * y )
inlinestatic

Compute the matrix-vector product y = A*x

Definition at line 104 of file fei_MatrixTraits_LinProbMgr.hpp.

◆ typeName() [2/2]

static const char * fei::MatrixTraits< fei::LinearProblemManager >::typeName ( )
inlinestatic

Return a string type-name for the underlying matrix. May appear in debug-output logs, etc. Does not need to exactly correspond to the type, but should be descriptive.

Definition at line 51 of file fei_MatrixTraits.hpp.

◆ setValues() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::setValues ( fei::LinearProblemManager * mat,
double scalar )
inlinestatic

Set a specified scalar value throughout the matrix.

Definition at line 66 of file fei_MatrixTraits.hpp.

◆ getNumLocalRows() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::getNumLocalRows ( fei::LinearProblemManager * mat,
int & numRows )
inlinestatic

Query the number of local rows. This is expected to be the number of point-entry rows on the local processor.

Definition at line 72 of file fei_MatrixTraits.hpp.

◆ getRowLength() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::getRowLength ( fei::LinearProblemManager * mat,
int row,
int & length )
inlinestatic

Given a locally-owned global row number, query the length (number of nonzeros) of that row.

Definition at line 78 of file fei_MatrixTraits.hpp.

◆ copyOutRow() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::copyOutRow ( fei::LinearProblemManager * mat,
int row,
int len,
double * coefs,
int * indices )
inlinestatic

Given a locally-owned global row number, pass out a copy of the contents of that row.

Parameters
mat
rowGlobal row number
lenLength of the user-allocated arrays coefs and indices.
coefsUser-allocated array which will hold matrix coefficients on output.
indicesUser-allocated array which will hold column-indices on output.
Returns
error-code 0 if successful. Non-zero return-value may indicate that the specified row is not locally owned.

Definition at line 93 of file fei_MatrixTraits.hpp.

◆ putValuesIn() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::putValuesIn ( fei::LinearProblemManager * mat,
int numRows,
const int * rows,
int numCols,
const int * cols,
const double *const * values,
bool sum_into )
inlinestatic

Sum a C-style table of coefficient data into the underlying matrix. This is a rectangular array of coefficients for rows/columns defined by the 'rows' and 'cols' lists.

Definition at line 101 of file fei_MatrixTraits.hpp.

◆ globalAssemble() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::globalAssemble ( fei::LinearProblemManager * A)
inlinestatic

Perform any necessary internal communications/synchronizations or other operations appropriate at end of data input. For some implementations this will be a no-op, so this "default implementation" returns 0. (The Trilinos/Epetra traits specialization calls A->FillComplete() at this point.)

Definition at line 114 of file fei_MatrixTraits.hpp.

◆ matvec() [2/2]

static int fei::MatrixTraits< fei::LinearProblemManager >::matvec ( fei::LinearProblemManager * A,
fei::Vector * x,
fei::Vector * y )
inlinestatic

Compute the matrix-vector product y = A*x. It is expected that the underlying matrix object will form the local portion of the result 'y' on the local processor.

Definition at line 120 of file fei_MatrixTraits.hpp.


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