TrilinosWrappers::BlockSparsityPattern Class Reference

Inheritance diagram for TrilinosWrappers::BlockSparsityPattern:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BlockSparsityPattern ()
 BlockSparsityPattern (const unsigned int n_rows, const unsigned int n_columns)
 BlockSparsityPattern (const std::vector< unsigned int > &row_block_sizes, const std::vector< unsigned int > &col_block_sizes)
 BlockSparsityPattern (const std::vector< Epetra_Map > &input_maps)
void reinit (const std::vector< unsigned int > &row_block_sizes, const std::vector< unsigned int > &col_block_sizes)
void reinit (const std::vector< Epetra_Map > &input_maps)

Constructor & Destructor Documentation

TrilinosWrappers::BlockSparsityPattern::BlockSparsityPattern (  ) 

Initialize the matrix empty, that is with no memory allocated. This is useful if you want such objects as member variables in other classes. You can make the structure usable by calling the reinit() function.

TrilinosWrappers::BlockSparsityPattern::BlockSparsityPattern ( const unsigned int  n_rows,
const unsigned int  n_columns 
)

Initialize the matrix with the given number of block rows and columns. The blocks themselves are still empty, and you have to call collect_sizes() after you assign them sizes.

TrilinosWrappers::BlockSparsityPattern::BlockSparsityPattern ( const std::vector< unsigned int > &  row_block_sizes,
const std::vector< unsigned int > &  col_block_sizes 
)

Initialize the pattern with two BlockIndices for the block structures of matrix rows and columns. This function is equivalent to calling the previous constructor with the length of the two index vector and then entering the index values.

TrilinosWrappers::BlockSparsityPattern::BlockSparsityPattern ( const std::vector< Epetra_Map > &  input_maps  ) 

Initialize the pattern with an array Epetra_Map that specifies both rows and columns of the matrix (so the final matrix will be a square matrix), where the Epetra_Map specifies the parallel distribution of the degrees of freedom on the individual block. This function is equivalent to calling the second constructor with the length of the mapping vector and then entering the index values.


Member Function Documentation

void TrilinosWrappers::BlockSparsityPattern::reinit ( const std::vector< unsigned int > &  row_block_sizes,
const std::vector< unsigned int > &  col_block_sizes 
)

Resize the matrix to a tensor product of matrices with dimensions defined by the arguments.

The matrix will have as many block rows and columns as there are entries in the two arguments. The block at position (i,j) will have the dimensions row_block_sizes[i] times col_block_sizes[j].

void TrilinosWrappers::BlockSparsityPattern::reinit ( const std::vector< Epetra_Map > &  input_maps  ) 

Resize the matrix to a square tensor product of matrices with parallel distribution according to the specifications in the array of Epetra_Maps.


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

deal.II documentation generated on Mon Nov 23 22:58:36 2009 by doxygen 1.6.1