Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
epetra_test::matrix_data Class Reference

matrix_data is a very simple data source to be used for filling test matrices. More...

#include <Epetra_matrix_data.h>

Public Member Functions

 matrix_data (int num_rows, int *rowlengths, int blocksize=1)
 
 matrix_data (int num_rows, int num_cols, int num_off_diagonals, int blocksize)
 
 matrix_data (int num_quad_elements, int num_dof_per_node, bool make_numerically_nonsymmetric=false)
 
virtual ~matrix_data ()
 
int numrows ()
 
int numcols ()
 
int blocksize ()
 
int * rows ()
 
int * rowlengths ()
 
int ** colindices ()
 
double ** coefs ()
 
double * coefs (int row, int col)
 
bool compare_local_data (const Epetra_CrsMatrix &A)
 The portion of this matrix_data object's data that corresponds to the locally-owned rows of A, will be copied into A. More...
 

Private Member Functions

 matrix_data (const matrix_data &data)
 
matrix_dataoperator= (const matrix_data &data)
 

Private Attributes

int numrows_
 
int numcols_
 
int * rows_
 
int * rowlengths_
 
int blocksize_
 
int ** colindices_
 
double ** coefs_
 

Detailed Description

matrix_data is a very simple data source to be used for filling test matrices.

It is serial; the intent is that a test program declares this class to be of full (global) size on each processor, then fills the local portion of the test matrix from the appropriate section of the data in this class.

Definition at line 66 of file Epetra_matrix_data.h.

Constructor & Destructor Documentation

epetra_test::matrix_data::matrix_data ( int  num_rows,
int *  rowlengths,
int  blocksize = 1 
)

Definition at line 50 of file Epetra_matrix_data.cpp.

epetra_test::matrix_data::matrix_data ( int  num_rows,
int  num_cols,
int  num_off_diagonals,
int  blocksize 
)

Definition at line 81 of file Epetra_matrix_data.cpp.

epetra_test::matrix_data::matrix_data ( int  num_quad_elements,
int  num_dof_per_node,
bool  make_numerically_nonsymmetric = false 
)

Definition at line 139 of file Epetra_matrix_data.cpp.

epetra_test::matrix_data::~matrix_data ( )
virtual

Definition at line 213 of file Epetra_matrix_data.cpp.

epetra_test::matrix_data::matrix_data ( const matrix_data data)
private

Member Function Documentation

int epetra_test::matrix_data::numrows ( )
inline

Definition at line 74 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::numcols ( )
inline

Definition at line 75 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::blocksize ( )
inline

Definition at line 76 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rows ( )
inline

Definition at line 77 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rowlengths ( )
inline

Definition at line 78 of file Epetra_matrix_data.h.

int** epetra_test::matrix_data::colindices ( )
inline

Definition at line 80 of file Epetra_matrix_data.h.

double** epetra_test::matrix_data::coefs ( )
inline

Definition at line 81 of file Epetra_matrix_data.h.

double * epetra_test::matrix_data::coefs ( int  row,
int  col 
)

Definition at line 227 of file Epetra_matrix_data.cpp.

bool epetra_test::matrix_data::compare_local_data ( const Epetra_CrsMatrix A)

The portion of this matrix_data object's data that corresponds to the locally-owned rows of A, will be copied into A.

A.FillComplete() will NOT be called.Compare the local rows of A to the corresponding rows of this matrix_data object's data.

Definition at line 269 of file Epetra_matrix_data.cpp.

matrix_data& epetra_test::matrix_data::operator= ( const matrix_data data)
private

Member Data Documentation

int epetra_test::matrix_data::numrows_
private

Definition at line 97 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::numcols_
private

Definition at line 98 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rows_
private

Definition at line 99 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rowlengths_
private

Definition at line 100 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::blocksize_
private

Definition at line 101 of file Epetra_matrix_data.h.

int** epetra_test::matrix_data::colindices_
private

Definition at line 103 of file Epetra_matrix_data.h.

double** epetra_test::matrix_data::coefs_
private

Definition at line 104 of file Epetra_matrix_data.h.


The documentation for this class was generated from the following files: