Tpetra::Import< Ordinal > Class Template Reference

Tpetra::Import: This class builds an import object for efficient importing of off-processor entries. More...

#include <Tpetra_Import.hpp>

Inheritance diagram for Tpetra::Import< Ordinal >:

Teuchos::Object List of all members.

Public Member Functions

Constructor/Destructor Methods
 Import (const Map< Ordinal > &source, const Map< Ordinal > &target)
 Constructs a Import object from the source and target Maps.
 Import (const Import< Ordinal > &import)
 copy constructor.
 ~Import ()
 destructor.
Export Attribute Methods
Ordinal getNumSameIDs () const
 Returns the number of entries that are identical between the source and target maps, up to the first different ID.
Ordinal getNumPermuteIDs () const
 Returns the number of entries that are local to the calling image, but not part of the first getNumSameIDs() entries.
Teuchos::ArrayView< const
Ordinal > 
getPermuteFromLIDs () const
 List of entries in the source Map that are permuted. (non-persisting view).
Teuchos::ArrayView< const
Ordinal > 
getPermuteToLIDs () const
 List of entries in the target Map that are permuted. (non-persisting view).
Ordinal getNumRemoteIDs () const
 Returns the number of entries that are not on the calling image.
Teuchos::ArrayView< const
Ordinal > 
getRemoteLIDs () const
 List of entries in the target Map that are coming from other images. (non-persisting view).
Ordinal getNumExportIDs () const
 Returns the number of entries that must be sent by the calling image to other images.
Teuchos::ArrayView< const
Ordinal > 
getExportLIDs () const
 List of entries in the source Map that will be sent to other images. (non-persisting view).
Teuchos::ArrayView< const
Ordinal > 
getExportImageIDs () const
 List of images to which entries will be sent, getExportLIDs() [i] will be sent to image getExportImageIDs() [i]. (non-persisting view).
const Map< Ordinal > & getSourceMap () const
 Returns the Source Map used to construct this importer.
const Map< Ordinal > & getTargetMap () const
 Returns the Target Map used to construct this importer.
Import< Ordinal > & operator= (const Import< Ordinal > &Source)
 Assignment operator.
I/O Methods
virtual void print (std::ostream &os) const
 Print method inherited from Teuchos::Object.

Detailed Description

template<typename Ordinal>
class Tpetra::Import< Ordinal >

Tpetra::Import: This class builds an import object for efficient importing of off-processor entries.

Import is used to construct a communication plan that can be called repeatedly by computational classes such the Tpetra CisMatrix and Vector classes to efficiently import entries from other images. An importer is used when we start out with a uniquely-owned distribution, and want to distribute that into a multiple-ownership distribution.

This class currently has one constructor, taking two Map objects. The first Map specifies the distribution we have now. The second Map specifies the distribution we want to have after importing.

NOTE: Behavior is undefined if the source Map is not uniquely-owned.


Constructor & Destructor Documentation

template<typename Ordinal>
Tpetra::Import< Ordinal >::Import ( const Map< Ordinal > &  source,
const Map< Ordinal > &  target 
)

Constructs a Import object from the source and target Maps.

template<typename Ordinal>
Tpetra::Import< Ordinal >::Import ( const Import< Ordinal > &  import  ) 

copy constructor.

template<typename Ordinal>
Tpetra::Import< Ordinal >::~Import (  ) 

destructor.


Member Function Documentation

template<typename Ordinal>
Ordinal Tpetra::Import< Ordinal >::getNumSameIDs (  )  const

Returns the number of entries that are identical between the source and target maps, up to the first different ID.

template<typename Ordinal>
Ordinal Tpetra::Import< Ordinal >::getNumPermuteIDs (  )  const

Returns the number of entries that are local to the calling image, but not part of the first getNumSameIDs() entries.

template<typename Ordinal>
Teuchos::ArrayView< const Ordinal > Tpetra::Import< Ordinal >::getPermuteFromLIDs (  )  const

List of entries in the source Map that are permuted. (non-persisting view).

template<typename Ordinal>
Teuchos::ArrayView< const Ordinal > Tpetra::Import< Ordinal >::getPermuteToLIDs (  )  const

List of entries in the target Map that are permuted. (non-persisting view).

template<typename Ordinal>
Ordinal Tpetra::Import< Ordinal >::getNumRemoteIDs (  )  const

Returns the number of entries that are not on the calling image.

template<typename Ordinal>
Teuchos::ArrayView< const Ordinal > Tpetra::Import< Ordinal >::getRemoteLIDs (  )  const

List of entries in the target Map that are coming from other images. (non-persisting view).

template<typename Ordinal>
Ordinal Tpetra::Import< Ordinal >::getNumExportIDs (  )  const

Returns the number of entries that must be sent by the calling image to other images.

template<typename Ordinal>
Teuchos::ArrayView< const Ordinal > Tpetra::Import< Ordinal >::getExportLIDs (  )  const

List of entries in the source Map that will be sent to other images. (non-persisting view).

template<typename Ordinal>
Teuchos::ArrayView< const Ordinal > Tpetra::Import< Ordinal >::getExportImageIDs (  )  const

List of images to which entries will be sent, getExportLIDs() [i] will be sent to image getExportImageIDs() [i]. (non-persisting view).

template<typename Ordinal>
const Map< Ordinal > & Tpetra::Import< Ordinal >::getSourceMap (  )  const

Returns the Source Map used to construct this importer.

template<typename Ordinal>
const Map< Ordinal > & Tpetra::Import< Ordinal >::getTargetMap (  )  const

Returns the Target Map used to construct this importer.

template<typename Ordinal>
Import< Ordinal > & Tpetra::Import< Ordinal >::operator= ( const Import< Ordinal > &  Source  ) 

Assignment operator.

template<typename Ordinal>
void Tpetra::Import< Ordinal >::print ( std::ostream &  os  )  const [virtual]

Print method inherited from Teuchos::Object.

Reimplemented from Teuchos::Object.


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:59:41 2010 for Tpetra Matrix/Vector Services by  doxygen 1.4.7