Stokhos Development
Public Types | Public Member Functions | Protected Attributes
Stokhos::ProductEpetraMultiVector Class Reference

A container class storing products of Epetra_MultiVector's. More...

#include <Stokhos_ProductEpetraMultiVector.hpp>

Inheritance diagram for Stokhos::ProductEpetraMultiVector:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::ProductEpetraMultiVector:
Collaboration graph
[legend]

List of all members.

Public Types

typedef double value_type
 Typename of values.
typedef int ordinal_type
 Typename of ordinals.

Public Member Functions

 ProductEpetraMultiVector ()
 Default constructor.
 ProductEpetraMultiVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map)
 Create a container with container map block_map.
 ProductEpetraMultiVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
 Create a container with container map block_map where each coefficient is generated from the supplied coefficient map coeff_map.
 ProductEpetraMultiVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
 Create a container with container map block_map where each coefficient is generated from the supplied coefficient map coeff_map.
 ProductEpetraMultiVector (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, Epetra_DataAccess CV, const Epetra_MultiVector &block_vector)
 Create a container with container map block_map where each coefficient is given by the supplied block vector.
 ProductEpetraMultiVector (const ProductEpetraMultiVector &v)
 Copy constructor.
virtual ~ProductEpetraMultiVector ()
 Destructor.
ProductEpetraMultiVectoroperator= (const ProductEpetraMultiVector &v)
 Assignment.
ProductEpetraMultiVectoroperator= (const Epetra_MultiVector &v)
 Assignment.
void assignToBlockMultiVector (Epetra_MultiVector &v) const
 Assignment.
void assignFromBlockMultiVector (const Epetra_MultiVector &v)
 Assignment.
Teuchos::RCP< const
Epetra_BlockMap > 
coefficientMap () const
 Get coefficient map.
Teuchos::RCP< const
Epetra_BlockMap > 
productMap () const
 Get product map.
Teuchos::RCP< const
EpetraExt::MultiComm > 
productComm () const
 Get product comm.
int numVectors () const
 Get number of vectors.
void reset (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
 Reset to a new size.
void reset (const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const Epetra_BlockMap > &product_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
 Reset to a new size.
void resetCoefficients (Epetra_DataAccess CV, const Epetra_MultiVector &block_vector)
 Reset vector cofficients.
Teuchos::RCP
< EpetraExt::BlockMultiVector > 
getBlockMultiVector ()
 Get block vector.
Teuchos::RCP< const
EpetraExt::BlockMultiVector > 
getBlockMultiVector () const
 Get block vector.
void setBlockMultiVector (const Teuchos::RCP< EpetraExt::BlockMultiVector > &block_vec)
 Set block vector.

Protected Attributes

Teuchos::RCP< const
Epetra_BlockMap > 
coeff_map
 Product map of block vector.
Teuchos::RCP< const
EpetraExt::MultiComm > 
product_comm
 Product multi-level communicator.
Teuchos::RCP< const
Epetra_BlockMap > 
product_map
 Product map of block vector.
Teuchos::RCP
< EpetraExt::BlockMultiVector > 
bv
 Block vector storing coefficients.

Detailed Description

A container class storing products of Epetra_MultiVector's.


Constructor & Destructor Documentation

Stokhos::ProductEpetraMultiVector::ProductEpetraMultiVector ( )

Default constructor.

Use with care! Generally you will want to call reset() before using any of the methods on this class.

Stokhos::ProductEpetraMultiVector::ProductEpetraMultiVector ( const ProductEpetraMultiVector v)

Copy constructor.

NOTE: This is a shallow copy


Member Function Documentation

Stokhos::ProductEpetraMultiVector & Stokhos::ProductEpetraMultiVector::operator= ( const ProductEpetraMultiVector v)

Assignment.

NOTE: This is a shallow copy

void Stokhos::ProductEpetraMultiVector::reset ( const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const Epetra_BlockMap > &  product_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm,
int  num_vectors 
)

Reset to a new size.

This resizes array to fit new size.

void Stokhos::ProductEpetraMultiVector::reset ( const Teuchos::RCP< const Epetra_BlockMap > &  block_map,
const Teuchos::RCP< const Epetra_BlockMap > &  coeff_map,
const Teuchos::RCP< const EpetraExt::MultiComm > &  product_comm,
int  num_vectors 
)

Reset to a new size.

This resizes array to fit new size.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator