Epetra_FECrsMatrix Class Reference

Epetra Finite-Element CrsMatrix. More...

#include <Epetra_FECrsMatrix.h>

Inheritance diagram for Epetra_FECrsMatrix:

[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 (const Epetra_FECrsMatrix &src)
 Copy Constructor.
virtual ~Epetra_FECrsMatrix ()
 Destructor.
Epetra_FECrsMatrixoperator= (const Epetra_FECrsMatrix &src)
 Assignment operator.
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.
int SumIntoGlobalValues (int GlobalRow, int NumEntries, double *Values, int *Indices)
 Add this list of entries to existing values for a given global row of the matrix.
int InsertGlobalValues (int GlobalRow, int NumEntries, double *Values, int *Indices)
 Insert a list of elements in a given global row of the matrix.
int ReplaceGlobalValues (int GlobalRow, int NumEntries, double *Values, int *Indices)
 Replace specified existing values with this list of entries for a given global row of the matrix.

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_

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


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ROW_MAJOR 
COLUMN_MAJOR 

Definition at line 139 of file Epetra_FECrsMatrix.h.

anonymous enum [private]
 

Enumeration values:
SUMINTO 
REPLACE 
INSERT 

Definition at line 540 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 39 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 64 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 89 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 115 of file Epetra_FECrsMatrix.cpp.

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

Constructor.

Definition at line 141 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::Epetra_FECrsMatrix const Epetra_FECrsMatrix src  ) 
 

Copy Constructor.

Definition at line 165 of file Epetra_FECrsMatrix.cpp.

Epetra_FECrsMatrix::~Epetra_FECrsMatrix  )  [virtual]
 

Destructor.

Definition at line 229 of file Epetra_FECrsMatrix.cpp.


Member Function Documentation

Epetra_FECrsMatrix & Epetra_FECrsMatrix::operator= const Epetra_FECrsMatrix src  ) 
 

Assignment operator.

Definition at line 183 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values List, 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'.
format Specifies 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 276 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List of column-numbers (scatter-indices) for the sub-matrix.
values List, 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'.
format Specifies 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 286 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values Square sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 255 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List of column-numbers (scatter-indices) for the sub-matrix.
values Rectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 265 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values List, 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'.
format Specifies 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 402 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List of column-numbers (scatter-indices) for the sub-matrix.
values List, 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'.
format Specifies 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 412 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values Square sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 381 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List of column-numbers (scatter-indices) for the sub-matrix.
values Rectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 391 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values List, 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'.
format Specifies 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 444 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List, of column-numbers (scatter-indices) for the sub-matrix.
values List, 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'.
format Specifies 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 454 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:
numIndices Number of rows (and columns) in the sub-matrix.
indices List of scatter-indices (rows and columns) for the sub-matrix.
values Square sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 423 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:
numRows Number of rows in the sub-matrix.
rows List of row-numbers (scatter-indices) for the sub-matrix.
numCols Number of columns in the sub-matrix.
cols List of column-numbers (scatter-indices) for the sub-matrix.
values Rectangular sub-matrix of coefficients, provided in a 2-D array, or double-pointer.
format Specifies 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 433 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:
indices List of scatter-indices. indices.Length() must be the same as values.M() and values.N().
values Sub-matrix of coefficients. Must be square.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 297 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:
rows List of row-indices. rows.Length() must be the same as values.M().
cols List of column-indices. cols.Length() must be the same as values.N().
values Sub-matrix of coefficients.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 336 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:
indices List of scatter-indices. indices.Length() must be the same as values.M() and values.N().
values Sub-matrix of coefficients. Must be square.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 310 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:
rows List of row-indices. rows.Length() must be the same as values.M().
cols List of column-indices. cols.Length() must be the same as values.N().
values Sub-matrix of coefficients.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 351 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:
indices List of scatter-indices. indices.Length() must be the same as values.M() and values.N().
values Sub-matrix of coefficients. Must be square.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 323 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:
rows List of row-indices. rows.Length() must be the same as values.M().
cols List of column-indices. cols.Length() must be the same as values.N().
values Sub-matrix of coefficients.
format Optional format specifier, defaults to COLUMN_MAJOR.

Definition at line 366 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:
callFillComplete option 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 465 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_map user-supplied domain map for this matrix
range_map user-supplied range map for this matrix
callFillComplete option 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 576 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 533 of file Epetra_FECrsMatrix.h.

void Epetra_FECrsMatrix::DeleteMemory  )  [private]
 

Reimplemented from Epetra_CrsMatrix.

Definition at line 235 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 689 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 769 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 792 of file Epetra_FECrsMatrix.cpp.

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

Definition at line 817 of file Epetra_FECrsMatrix.cpp.

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

Definition at line 866 of file Epetra_FECrsMatrix.cpp.

int Epetra_CrsMatrix::SumIntoGlobalValues int  GlobalRow,
int  NumEntries,
double *  Values,
int *  Indices
 

Add this list of entries to existing values for a given global row of the matrix.

Parameters:
GlobalRow - (In) Row number (in global coordinates) to put elements.
NumEntries - (In) Number of entries.
Values - (In) Values to enter.
Indices - (In) Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful. Note that if a value is not already present for the specified location in the matrix, the input value will be ignored and a positive warning code will be returned.
Precondition:
IndicesAreLocal()==false && IndicesAreContiguous()==false

int Epetra_CrsMatrix::InsertGlobalValues int  GlobalRow,
int  NumEntries,
double *  Values,
int *  Indices
 

Insert a list of elements in a given global row of the matrix.

Parameters:
GlobalRow - (In) Row number (in global coordinates) to put elements.
NumEntries - (In) Number of entries.
Values - (In) Values to enter.
Indices - (In) Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful. Note that if the allocated length of the row has to be expanded, a positive warning code will be returned.
Precondition:
IndicesAreLocal()==false && IndicesAreContiguous()==false

int Epetra_CrsMatrix::ReplaceGlobalValues int  GlobalRow,
int  NumEntries,
double *  Values,
int *  Indices
 

Replace specified existing values with this list of entries for a given global row of the matrix.

Parameters:
GlobalRow - (In) Row number (in global coordinates) to put elements.
NumEntries - (In) Number of entries.
Values - (In) Values to enter.
Indices - (In) Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful. Note that if a value is not already present for the specified location in the matrix, the input value will be ignored and a positive warning code will be returned.
Precondition:
IndicesAreLocal()==false && IndicesAreContiguous()==false


Member Data Documentation

int Epetra_FECrsMatrix::myFirstRow_ [private]
 

Definition at line 565 of file Epetra_FECrsMatrix.h.

int Epetra_FECrsMatrix::myNumRows_ [private]
 

Definition at line 566 of file Epetra_FECrsMatrix.h.

bool Epetra_FECrsMatrix::ignoreNonLocalEntries_ [private]
 

Definition at line 568 of file Epetra_FECrsMatrix.h.

int Epetra_FECrsMatrix::numNonlocalRows_ [private]
 

Definition at line 570 of file Epetra_FECrsMatrix.h.

int* Epetra_FECrsMatrix::nonlocalRows_ [private]
 

Definition at line 571 of file Epetra_FECrsMatrix.h.

int* Epetra_FECrsMatrix::nonlocalRowLengths_ [private]
 

Definition at line 572 of file Epetra_FECrsMatrix.h.

int* Epetra_FECrsMatrix::nonlocalRowAllocLengths_ [private]
 

Definition at line 573 of file Epetra_FECrsMatrix.h.

int** Epetra_FECrsMatrix::nonlocalCols_ [private]
 

Definition at line 574 of file Epetra_FECrsMatrix.h.

double** Epetra_FECrsMatrix::nonlocalCoefs_ [private]
 

Definition at line 575 of file Epetra_FECrsMatrix.h.

double* Epetra_FECrsMatrix::workData_ [private]
 

Definition at line 577 of file Epetra_FECrsMatrix.h.

int Epetra_FECrsMatrix::workDataLength_ [private]
 

Definition at line 578 of file Epetra_FECrsMatrix.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:38:05 2008 for Epetra Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1