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>

List of all members.

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)
void copy_local_data_to_matrix (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.
bool compare_local_data (const Epetra_CrsMatrix &A)
 Compare the local rows of A to the corresponding rows of this matrix_data object's data.

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 41 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 37 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 68 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 126 of file Epetra_matrix_data.cpp.

epetra_test::matrix_data::~matrix_data (  )  [virtual]

Definition at line 200 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 49 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::numcols (  )  [inline]

Definition at line 50 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::blocksize (  )  [inline]

Definition at line 51 of file Epetra_matrix_data.h.

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

Definition at line 52 of file Epetra_matrix_data.h.

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

Definition at line 53 of file Epetra_matrix_data.h.

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

Definition at line 55 of file Epetra_matrix_data.h.

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

Definition at line 56 of file Epetra_matrix_data.h.

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

Definition at line 214 of file Epetra_matrix_data.cpp.

void epetra_test::matrix_data::copy_local_data_to_matrix ( 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.

Definition at line 237 of file Epetra_matrix_data.cpp.

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

Compare the local rows of A to the corresponding rows of this matrix_data object's data.

Definition at line 254 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 71 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::numcols_ [private]

Definition at line 72 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rows_ [private]

Definition at line 73 of file Epetra_matrix_data.h.

int* epetra_test::matrix_data::rowlengths_ [private]

Definition at line 74 of file Epetra_matrix_data.h.

int epetra_test::matrix_data::blocksize_ [private]

Definition at line 75 of file Epetra_matrix_data.h.

int** epetra_test::matrix_data::colindices_ [private]

Definition at line 77 of file Epetra_matrix_data.h.

double** epetra_test::matrix_data::coefs_ [private]

Definition at line 78 of file Epetra_matrix_data.h.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:41:10 2010 for Epetra Package Browser (Single Doxygen Collection) by  doxygen 1.4.7