Tpetra Matrix/Vector Services  Version of the Day
Namespaces | Functions
TpetraExt_BlockExtraction_decl.hpp File Reference
#include "Tpetra_ConfigDefs.hpp"
#include "Tpetra_RowMatrix.hpp"
#include "Tpetra_BlockMap.hpp"

Go to the source code of this file.

Namespaces

 Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
 Tpetra::Ext
 Namespace for external Tpetra functionality.
 

Functions

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void Tpetra::Ext::extractBlockDiagonals (const Tpetra::RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &matrix, const Teuchos::ArrayView< const LocalOrdinal > &first_points, Teuchos::ArrayRCP< Scalar > &out_diags, Teuchos::ArrayRCP< LocalOrdinal > &out_offsets)
 Extracts the block diagonals from a RowMatrix into contiguous, host storage. More...
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void Tpetra::Ext::extractBlockDiagonals (const Tpetra::RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &matrix, const Tpetra::BlockMap< LocalOrdinal, GlobalOrdinal, Node > &block_map, Teuchos::ArrayRCP< Scalar > &out_diags, Teuchos::ArrayRCP< LocalOrdinal > &out_offsets)
 Extracts the block diagonals from a RowMatrix into contiguous, host storage using a BlockMap. More...
 
template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void Tpetra::Ext::extractBlockRow (LocalOrdinal localBlockRow, const RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &matrix, const BlockMap< LocalOrdinal, GlobalOrdinal, Node > &block_row_map, const BlockMap< LocalOrdinal, GlobalOrdinal, Node > &block_col_map, ArrayRCP< ArrayRCP< Scalar > > &out_block_entries, ArrayRCP< LocalOrdinal > &out_block_indices)
 Extracts block elements from a RowMatrix into contiguous, host storage. More...
 

Detailed Description

Methods for block extraction of data from Tpetra objects.

Definition in file TpetraExt_BlockExtraction_decl.hpp.