Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
Tpetra_BlockCrsMatrix_Helpers_def.hpp File Reference
#include "Tpetra_BlockCrsMatrix.hpp"
#include "Tpetra_CrsMatrix.hpp"
#include "Tpetra_HashTable.hpp"
#include "Tpetra_Import.hpp"
#include "Tpetra_Map.hpp"
#include "Tpetra_MultiVector.hpp"
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_ScalarTraits.hpp"
#include <ctime>
#include <fstream>

Go to the source code of this file.

Namespaces

 Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 

Functions

template<class Scalar , class LO , class GO , class Node >
void Tpetra::blockCrsMatrixWriter (BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::string const &fileName)
 Helper function to write a BlockCrsMatrix. Calls the 3-argument version. More...
 
template<class Scalar , class LO , class GO , class Node >
void Tpetra::blockCrsMatrixWriter (BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::string const &fileName, Teuchos::ParameterList const &params)
 Helper function to write a BlockCrsMatrix. Calls the 3-argument version. More...
 
template<class Scalar , class LO , class GO , class Node >
void Tpetra::blockCrsMatrixWriter (BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::ostream &os)
 Helper function to write a BlockCrsMatrix. Calls the 3-argument version. More...
 
template<class Scalar , class LO , class GO , class Node >
void Tpetra::blockCrsMatrixWriter (BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::ostream &os, Teuchos::ParameterList const &params)
 Helper function to write a BlockCrsMatrix. More...
 
template<class Scalar , class LO , class GO , class Node >
void Tpetra::writeMatrixStrip (BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::ostream &os, Teuchos::ParameterList const &params)
 Helper function called by blockCrsMatrixWriter. More...
 
template<class Scalar , class LO , class GO , class Node >
Teuchos::RCP< Tpetra::CrsGraph
< LO, GO, Node > > 
Tpetra::getBlockCrsGraph (const Tpetra::CrsMatrix< Scalar, LO, GO, Node > &pointMatrix, const LO &blockSize, bool use_local_ID=true)
 Non-member constructor that creates the CrsGraph of a BlockCrsMatrix from an existing point CrsMatrix and a block size. More...
 
template<class Scalar , class LO , class GO , class Node >
Teuchos::RCP< BlockCrsMatrix
< Scalar, LO, GO, Node > > 
Tpetra::convertToBlockCrsMatrix (const Tpetra::CrsMatrix< Scalar, LO, GO, Node > &pointMatrix, const LO &blockSize, bool use_local_ID=true)
 Non-member constructor that creates a BlockCrsMatrix from an existing point CrsMatrix. More...
 
template<class Scalar , class LO , class GO , class Node >
Teuchos::RCP
< Tpetra::CrsMatrix< Scalar,
LO, GO, Node > > 
Tpetra::fillLogicalBlocks (const Tpetra::CrsMatrix< Scalar, LO, GO, Node > &pointMatrix, const LO &blockSize)
 Fill all point entries in a logical block of a CrsMatrix with zeroes. This should be called before convertToBlockCrsMatrix if your Crs is not filled. Performed on host. More...
 
template<class Scalar , class LO , class GO , class Node >
Teuchos::RCP
< Tpetra::CrsMatrix< Scalar,
LO, GO, Node > > 
Tpetra::unfillFormerBlockCrs (const Tpetra::CrsMatrix< Scalar, LO, GO, Node > &pointMatrix)
 Unfill all point entries in a logical block of a CrsMatrix with zeroes. This can be called after convertToCrsMatrix if you don't want to keep the filled values. Performed on host. More...
 
template<class LO , class GO , class Node >
Teuchos::RCP< const
Tpetra::Map< LO, GO, Node > > 
Tpetra::createMeshMap (LO const &blockSize, const Tpetra::Map< LO, GO, Node > &pointMap, bool use_local_ID=false)
 Helper function to generate a mesh map from a point map. Important! It's assumed that point GIDs associated with a single mesh GID appear consecutively in pointMap. More...
 
template<class LO , class GO , class Node >
Teuchos::RCP< const
Tpetra::Map< LO, GO, Node > > 
Tpetra::createPointMap (LO const &blockSize, const Tpetra::Map< LO, GO, Node > &blockMap)
 Helper function to generate a point map from a block map (with a given block size) GIDs associated with a single mesh GID appear consecutively in the output map. More...
 
template<class Scalar , class LO , class GO , class Node >
Teuchos::RCP< CrsMatrix
< Scalar, LO, GO, Node > > 
Tpetra::convertToCrsMatrix (const Tpetra::BlockCrsMatrix< Scalar, LO, GO, Node > &blockMatrix)
 Non-member constructor that creates a point CrsMatrix from an existing BlockCrsMatrix. More...