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 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)
 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)
 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 InsertNonlocalRow (int row, int offset)
int InputNonlocalValue (int rowoffset, int col, double value, int mode)

Private Attributes

int myFirstRow_
int myNumRows_
bool ignoreNonLocalEntries_
int numNonlocalRows_
int * nonlocalRows_
int * nonlocalRowLengths_
int * nonlocalRowAllocLengths_
int ** nonlocalCols_
double ** nonlocalCoefs_
double * workData_
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 110 of file Epetra_FECrsMatrix.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ROW_MAJOR 
COLUMN_MAJOR 

Definition at line 157 of file Epetra_FECrsMatrix.h.

anonymous enum [private]
Enumerator:
SUMINTO 
REPLACE 
INSERT 

Definition at line 568 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 80 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 107 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 135 of file Epetra_FECrsMatrix.cpp.

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

Constructor.

Definition at line 163 of file Epetra_FECrsMatrix.cpp.

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

Constructor.

Definition at line 189 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix ( const Epetra_FECrsMatrix src)

Copy Constructor.

Definition at line 216 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::~Epetra_FECrsMatrix ( ) [virtual]

Destructor.

Definition at line 288 of file Epetra_FECrsMatrix.cpp.


Member Function Documentation

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

Assignment operator.

Definition at line 235 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 485 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 499 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 508 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 338 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 348 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 317 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 327 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 464 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 474 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 443 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 453 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 538 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 548 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 517 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 527 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 359 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 398 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 372 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 413 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 385 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 428 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::GlobalAssemble ( bool  callFillComplete = true)

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 559 of file Epetra_FECrsMatrix.cpp.

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

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 565 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 561 of file Epetra_FECrsMatrix.h.

void Epetra_FECrsMatrix::DeleteMemory ( ) [private]

Reimplemented from Epetra_CrsMatrix.

Definition at line 294 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 686 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 760 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 783 of file Epetra_FECrsMatrix.cpp.

int Epetra_FECrsMatrix::InsertNonlocalRow ( int  row,
int  offset 
) [private]

Definition at line 838 of file Epetra_FECrsMatrix.cpp.

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

Definition at line 887 of file Epetra_FECrsMatrix.cpp.


Member Data Documentation

Definition at line 593 of file Epetra_FECrsMatrix.h.

Definition at line 594 of file Epetra_FECrsMatrix.h.

Definition at line 596 of file Epetra_FECrsMatrix.h.

Definition at line 598 of file Epetra_FECrsMatrix.h.

Definition at line 599 of file Epetra_FECrsMatrix.h.

Definition at line 600 of file Epetra_FECrsMatrix.h.

Definition at line 601 of file Epetra_FECrsMatrix.h.

Definition at line 602 of file Epetra_FECrsMatrix.h.

Definition at line 603 of file Epetra_FECrsMatrix.h.

double* Epetra_FECrsMatrix::workData_ [private]

Definition at line 605 of file Epetra_FECrsMatrix.h.

Definition at line 606 of file Epetra_FECrsMatrix.h.

Definition at line 608 of file Epetra_FECrsMatrix.h.

Definition at line 609 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