Epetra Package Browser (Single Doxygen Collection) Development
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
Epetra_FECrsMatrix Class Reference

Epetra Finite-Element CrsMatrix. More...

#include <Epetra_FECrsMatrix.h>

Inheritance diagram for Epetra_FECrsMatrix:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { ROW_MAJOR = 0, COLUMN_MAJOR = 3 }

Public Member Functions

 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_Map &RowMap, int *NumEntriesPerRow, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_Map &RowMap, int NumEntriesPerRow, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_Map &RowMap, const Epetra_Map &ColMap, int *NumEntriesPerRow, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_Map &RowMap, const Epetra_Map &ColMap, int NumEntriesPerRow, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_CrsGraph &Graph, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (Epetra_DataAccess CV, const Epetra_FECrsGraph &Graph, bool ignoreNonLocalEntries=false)
 Constructor.
 Epetra_FECrsMatrix (const Epetra_FECrsMatrix &src)
 Copy Constructor.
virtual ~Epetra_FECrsMatrix ()
 Destructor.
Epetra_FECrsMatrixoperator= (const Epetra_FECrsMatrix &src)
 Assignment operator.
int SumIntoGlobalValues (int GlobalRow, int NumEntries, const double *Values, const int *Indices)
 override base-class Epetra_CrsMatrix::SumIntoGlobalValues method
int InsertGlobalValues (int GlobalRow, int NumEntries, const double *Values, const int *Indices)
 override base-class Epetra_CrsMatrix::InsertGlobalValues method
int InsertGlobalValues (int GlobalRow, int NumEntries, double *Values, int *Indices)
 override base-class Epetra_CrsMatrix::InsertGlobalValues method
int ReplaceGlobalValues (int GlobalRow, int NumEntries, const double *Values, const int *Indices)
 override base-class Epetra_CrsMatrix::ReplaceGlobalValues method
int SumIntoGlobalValues (int numIndices, const int *indices, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Sum a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.
int SumIntoGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Sum a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.
int SumIntoGlobalValues (int numIndices, const int *indices, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Sum C-style table (double-pointer, or list of lists) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.
int SumIntoGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Sum C-style table (double-pointer, or list of lists) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.
int InsertGlobalValues (int numIndices, const int *indices, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Insert a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix.
int InsertGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Insert a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix.
int InsertGlobalValues (int numIndices, const int *indices, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Insert a C-style table (double-pointer, or list of lists) of coefficients into the matrix.
int InsertGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Insert a C-style table (double-pointer, or list of lists) of coefficients into the matrix.
int ReplaceGlobalValues (int numIndices, const int *indices, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Copy a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.
int ReplaceGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Copy Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.
int ReplaceGlobalValues (int numIndices, const int *indices, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Copy C-style table (double-pointer, or list of lists) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.
int ReplaceGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *const *values, int format=Epetra_FECrsMatrix::ROW_MAJOR)
 Copy C-style table (double-pointer, or list of lists) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.
int SumIntoGlobalValues (const Epetra_IntSerialDenseVector &indices, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Sum a square structurally-symmetric sub-matrix into the global matrix.
int SumIntoGlobalValues (const Epetra_IntSerialDenseVector &rows, const Epetra_IntSerialDenseVector &cols, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Sum a general sub-matrix into the global matrix.
int InsertGlobalValues (const Epetra_IntSerialDenseVector &indices, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Insert a square structurally-symmetric sub-matrix into the global matrix.
int InsertGlobalValues (const Epetra_IntSerialDenseVector &rows, const Epetra_IntSerialDenseVector &cols, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Insert a general sub-matrix into the global matrix.
int ReplaceGlobalValues (const Epetra_IntSerialDenseVector &indices, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Use a square structurally-symmetric sub-matrix to replace existing values in the global matrix.
int ReplaceGlobalValues (const Epetra_IntSerialDenseVector &rows, const Epetra_IntSerialDenseVector &cols, const Epetra_SerialDenseMatrix &values, int format=Epetra_FECrsMatrix::COLUMN_MAJOR)
 Use a general sub-matrix to replace existing values.
int GlobalAssemble (bool callFillComplete=true, Epetra_CombineMode combineMode=Add)
 Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this matrix at construction time.
int GlobalAssemble (const Epetra_Map &domain_map, const Epetra_Map &range_map, bool callFillComplete=true, Epetra_CombineMode combineMode=Add)
 Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this matrix at construction time.
void setIgnoreNonLocalEntries (bool flag)
 Set whether or not non-local data values should be ignored.

Private Types

enum  { SUMINTO = 0, REPLACE = 1, INSERT = 2 }

Private Member Functions

void DeleteMemory ()
int InputGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *const *values, int format, int mode)
int InputGlobalValues (int numRows, const int *rows, int numCols, const int *cols, const double *values, int format, int mode)
int InputNonlocalGlobalValues (int row, int numCols, const int *cols, const double *values, int mode)
int InputGlobalValues_RowMajor (int numRows, const int *rows, int numCols, const int *cols, const double *values, int mode)
int InsertNonlocalRow (int row, std::vector< int >::iterator offset)
int InputNonlocalValue (int rowoffset, int col, double value, int mode)

Private Attributes

int myFirstRow_
int myNumRows_
bool ignoreNonLocalEntries_
std::vector< int > nonlocalRows_
std::vector< std::vector< int > > nonlocalCols_
std::vector< std::vector
< double > > 
nonlocalCoefs_
std::vector< double > workData_
std::vector< const double * > workData2d_
int workDataLength_
bool useNonlocalMatrix_
Epetra_CrsMatrixnonlocalMatrix_

Detailed Description

Epetra Finite-Element CrsMatrix.

This class provides the ability to input finite-element style sub-matrix data, including sub-matrices with non-local rows (which could correspond to shared finite-element nodes for example). This class inherits Epetra_CrsMatrix, and so all Epetra_CrsMatrix functionality is also available.

It is intended that this class will be used as follows:

Sub-matrix data, which is assumed to be a rectangular 'table' of coefficients accompanied by 'scatter-indices', can be provided in three forms:

In all cases, a "format" parameter specifies whether the data is laid out in row-major or column-major order (i.e., whether coefficients for a row lie contiguously or whether coefficients for a column lie contiguously). See the documentation for the methods SumIntoGlobalValues() and ReplaceGlobalValues().

Important notes:

  1. Since Epetra_FECrsMatrix inherits Epetra_CrsMatrix, the semantics of the Insert/SumInto/Replace methods are the same as they are on Epetra_CrsMatrix, which is:

Definition at line 114 of file Epetra_FECrsMatrix.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ROW_MAJOR 
COLUMN_MAJOR 

Definition at line 161 of file Epetra_FECrsMatrix.h.

anonymous enum [private]
Enumerator:
SUMINTO 
REPLACE 
INSERT 

Definition at line 577 of file Epetra_FECrsMatrix.h.


Constructor & Destructor Documentation

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_Map RowMap,
int *  NumEntriesPerRow,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 53 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_Map RowMap,
int  NumEntriesPerRow,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 73 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_Map RowMap,
const Epetra_Map ColMap,
int *  NumEntriesPerRow,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 93 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_Map RowMap,
const Epetra_Map ColMap,
int  NumEntriesPerRow,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 114 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_CrsGraph Graph,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 135 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( Epetra_DataAccess  CV,
const Epetra_FECrsGraph Graph,
bool  ignoreNonLocalEntries = false 
)

Constructor.

Definition at line 154 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( const Epetra_FECrsMatrix src)

Copy Constructor.

Definition at line 174 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::~Epetra_FECrsMatrix ( ) [virtual]

Destructor.

Definition at line 222 of file Epetra_FECrsMatrix.cpp.


Member Function Documentation

Epetra_FECrsMatrix & Epetra_FECrsMatrix::operator= ( const Epetra_FECrsMatrix src)

Assignment operator.

Definition at line 189 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( int  GlobalRow,
int  NumEntries,
const double *  Values,
const int *  Indices 
) [virtual]

override base-class Epetra_CrsMatrix::SumIntoGlobalValues method

Reimplemented from Epetra_CrsMatrix.

Definition at line 407 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  GlobalRow,
int  NumEntries,
const double *  Values,
const int *  Indices 
) [virtual]

override base-class Epetra_CrsMatrix::InsertGlobalValues method

Reimplemented from Epetra_CrsMatrix.

Definition at line 421 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  GlobalRow,
int  NumEntries,
double *  Values,
int *  Indices 
) [virtual]

override base-class Epetra_CrsMatrix::InsertGlobalValues method

Reimplemented from Epetra_CrsMatrix.

Definition at line 430 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( int  GlobalRow,
int  NumEntries,
const double *  Values,
const int *  Indices 
) [virtual]

override base-class Epetra_CrsMatrix::ReplaceGlobalValues method

Reimplemented from Epetra_CrsMatrix.

Definition at line 439 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( int  numIndices,
const int *  indices,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Sum a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesList, length numIndices*numIndices. Square sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 260 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Sum a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList of column-numbers (scatter-indices) for the sub-matrix.
valuesList, length numRows*numCols. Rectangular sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 270 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( int  numIndices,
const int *  indices,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Sum C-style table (double-pointer, or list of lists) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesSquare sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 239 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Sum C-style table (double-pointer, or list of lists) of coefficients into the matrix, adding them to any coefficients that may already exist at the specified row/column locations.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList of column-numbers (scatter-indices) for the sub-matrix.
valuesRectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 249 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  numIndices,
const int *  indices,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Insert a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesList, length numIndices*numIndices. Square sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 386 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Insert a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList of column-numbers (scatter-indices) for the sub-matrix.
valuesList, length numRows*numCols. Rectangular sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 396 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  numIndices,
const int *  indices,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Insert a C-style table (double-pointer, or list of lists) of coefficients into the matrix.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesSquare sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 365 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Insert a C-style table (double-pointer, or list of lists) of coefficients into the matrix.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList of column-numbers (scatter-indices) for the sub-matrix.
valuesRectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 375 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( int  numIndices,
const int *  indices,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Copy a Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesList, length numIndices*numIndices. Square sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 469 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *  values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Copy Fortran-style table (single-dimensional packed-list) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList, of column-numbers (scatter-indices) for the sub-matrix.
valuesList, length numRows*numCols. Rectangular sub-matrix of coefficients, packed in a 1-D array. Data is packed either contiguously by row or by column, specified by the final parameter 'format'.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is COLUMN_MAJOR.

Definition at line 479 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( int  numIndices,
const int *  indices,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Copy C-style table (double-pointer, or list of lists) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.

Parameters:
numIndicesNumber of rows (and columns) in the sub-matrix.
indicesList of scatter-indices (rows and columns) for the sub-matrix.
valuesSquare sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 448 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *const *  values,
int  format = Epetra_FECrsMatrix::ROW_MAJOR 
)

Copy C-style table (double-pointer, or list of lists) of coefficients into the matrix, replacing any coefficients that may already exist at the specified row/column locations.

Parameters:
numRowsNumber of rows in the sub-matrix.
rowsList of row-numbers (scatter-indices) for the sub-matrix.
numColsNumber of columns in the sub-matrix.
colsList of column-numbers (scatter-indices) for the sub-matrix.
valuesRectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
formatSpecifies whether the data in 'values' is packed in column-major or row-major order. Valid values are Epetra_FECrsMatrix::ROW_MAJOR or Epetra_FECrsMatrix::COLUMN_MAJOR. This is an optional parameter, default value is ROW_MAJOR.

Definition at line 458 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( const Epetra_IntSerialDenseVector indices,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Sum a square structurally-symmetric sub-matrix into the global matrix.

For non-square sub-matrices, see the other overloading of this method.

Parameters:
indicesList of scatter-indices. indices.Length() must be the same as values.M() and values.N().
valuesSub-matrix of coefficients. Must be square.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 281 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::SumIntoGlobalValues ( const Epetra_IntSerialDenseVector rows,
const Epetra_IntSerialDenseVector cols,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Sum a general sub-matrix into the global matrix.

For square structurally-symmetric sub-matrices, see the other overloading of this method.

Parameters:
rowsList of row-indices. rows.Length() must be the same as values.M().
colsList of column-indices. cols.Length() must be the same as values.N().
valuesSub-matrix of coefficients.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 320 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( const Epetra_IntSerialDenseVector indices,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Insert a square structurally-symmetric sub-matrix into the global matrix.

For non-square sub-matrices, see the other overloading of this method.

Parameters:
indicesList of scatter-indices. indices.Length() must be the same as values.M() and values.N().
valuesSub-matrix of coefficients. Must be square.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 294 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertGlobalValues ( const Epetra_IntSerialDenseVector rows,
const Epetra_IntSerialDenseVector cols,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Insert a general sub-matrix into the global matrix.

For square structurally-symmetric sub-matrices, see the other overloading of this method.

Parameters:
rowsList of row-indices. rows.Length() must be the same as values.M().
colsList of column-indices. cols.Length() must be the same as values.N().
valuesSub-matrix of coefficients.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 335 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( const Epetra_IntSerialDenseVector indices,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Use a square structurally-symmetric sub-matrix to replace existing values in the global matrix.

For non-square sub-matrices, see the other overloading of this method.

Parameters:
indicesList of scatter-indices. indices.Length() must be the same as values.M() and values.N().
valuesSub-matrix of coefficients. Must be square.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 307 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::ReplaceGlobalValues ( const Epetra_IntSerialDenseVector rows,
const Epetra_IntSerialDenseVector cols,
const Epetra_SerialDenseMatrix values,
int  format = Epetra_FECrsMatrix::COLUMN_MAJOR 
)

Use a general sub-matrix to replace existing values.

For square structurally-symmetric sub-matrices, see the other overloading of this method.

Parameters:
rowsList of row-indices. rows.Length() must be the same as values.M().
colsList of column-indices. cols.Length() must be the same as values.N().
valuesSub-matrix of coefficients.
formatOptional format specifier, defaults to COLUMN_MAJOR.

Definition at line 350 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::GlobalAssemble ( bool  callFillComplete = true,
Epetra_CombineMode  combineMode = Add 
)

Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this matrix at construction time.

Data imported from other processors is stored on the owning processor with a "sumInto" or accumulate operation. This is a collective method -- every processor must enter it before any will complete it.

NOTE***: When GlobalAssemble() calls FillComplete(), it passes the arguments 'DomainMap()' and 'RangeMap()', which are the map attributes held by the base-class CrsMatrix and its graph. If a rectangular matrix is being assembled, the domain-map and range-map must be specified by calling the other overloading of this method. Otherwise, GlobalAssemble() has no way of knowing what these maps should really be.

Parameters:
callFillCompleteoption argument, defaults to true. Determines whether GlobalAssemble() internally calls the FillComplete() method on this matrix.
Returns:
error-code 0 if successful, non-zero if some error occurs

Definition at line 490 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::GlobalAssemble ( const Epetra_Map domain_map,
const Epetra_Map range_map,
bool  callFillComplete = true,
Epetra_CombineMode  combineMode = Add 
)

Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this matrix at construction time.

Data imported from other processors is stored on the owning processor with a "sumInto" or accumulate operation. This is a collective method -- every processor must enter it before any will complete it.

NOTE***: When GlobalAssemble() (the other overloading of this method) calls FillComplete(), it passes the arguments 'DomainMap()' and 'RangeMap()', which are the map attributes already held by the base-class CrsMatrix and its graph. If a rectangular matrix is being assembled, the domain-map and range-map must be specified. Otherwise, GlobalAssemble() has no way of knowing what these maps should really be.

Parameters:
domain_mapuser-supplied domain map for this matrix
range_mapuser-supplied range map for this matrix
callFillCompleteoption argument, defaults to true. Determines whether GlobalAssemble() internally calls the FillComplete() method on this matrix.
Returns:
error-code 0 if successful, non-zero if some error occurs

Definition at line 496 of file Epetra_FECrsMatrix.cpp.

void Epetra_FECrsMatrix::setIgnoreNonLocalEntries ( bool  flag) [inline]

Set whether or not non-local data values should be ignored.

By default, non-local data values are NOT ignored.

Definition at line 570 of file Epetra_FECrsMatrix.h.

void Epetra_FECrsMatrix::DeleteMemory ( ) [private]

Reimplemented from Epetra_CrsMatrix.

Definition at line 228 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InputGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *const *  values,
int  format,
int  mode 
) [private]

Definition at line 666 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InputGlobalValues ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *  values,
int  format,
int  mode 
) [private]

Definition at line 712 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InputNonlocalGlobalValues ( int  row,
int  numCols,
const int *  cols,
const double *  values,
int  mode 
) [private]

Definition at line 739 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InputGlobalValues_RowMajor ( int  numRows,
const int *  rows,
int  numCols,
const int *  cols,
const double *  values,
int  mode 
) [private]

Definition at line 616 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertNonlocalRow ( int  row,
std::vector< int >::iterator  offset 
) [private]

Definition at line 791 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InputNonlocalValue ( int  rowoffset,
int  col,
double  value,
int  mode 
) [private]

Definition at line 804 of file Epetra_FECrsMatrix.cpp.


Member Data Documentation

Definition at line 608 of file Epetra_FECrsMatrix.h.

Definition at line 609 of file Epetra_FECrsMatrix.h.

Definition at line 611 of file Epetra_FECrsMatrix.h.

std::vector<int> Epetra_FECrsMatrix::nonlocalRows_ [private]

Definition at line 613 of file Epetra_FECrsMatrix.h.

std::vector<std::vector<int> > Epetra_FECrsMatrix::nonlocalCols_ [private]

Definition at line 614 of file Epetra_FECrsMatrix.h.

std::vector<std::vector<double> > Epetra_FECrsMatrix::nonlocalCoefs_ [private]

Definition at line 615 of file Epetra_FECrsMatrix.h.

std::vector<double> Epetra_FECrsMatrix::workData_ [private]

Definition at line 619 of file Epetra_FECrsMatrix.h.

std::vector<const double*> Epetra_FECrsMatrix::workData2d_ [private]

Definition at line 620 of file Epetra_FECrsMatrix.h.

Definition at line 621 of file Epetra_FECrsMatrix.h.

Definition at line 623 of file Epetra_FECrsMatrix.h.

Definition at line 624 of file Epetra_FECrsMatrix.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines