Xpetra Version of the Day
Xpetra::CrsGraphFactory< int, int, EpetraNode > Class Reference

#include <Xpetra_CrsGraphFactory.hpp>

Static Public Member Functions

static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap)
 Constructor for empty graph (intended use is an import/export target - can't insert entries directly) More...
 
static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t maxNumEntriesPerRow)
 
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map and number of entries per row. More...
 
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &sourceGraph, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap=Teuchos::null, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap=Teuchos::null, const RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor using fused import. More...
 
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const Teuchos::ArrayRCP< size_t > &rowPointers, const Teuchos::ArrayRCP< LocalOrdinal > &columnIndices, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map and arrays containing the graph in sorted, local ids. More...
 

Private Types

typedef int LocalOrdinal
 
typedef int GlobalOrdinal
 
typedef EpetraNode Node
 

Private Member Functions

 CrsGraphFactory ()
 Private constructor. This is a static class. More...
 

Detailed Description

Definition at line 322 of file Xpetra_CrsGraphFactory.hpp.

Member Typedef Documentation

◆ LocalOrdinal

typedef int Xpetra::CrsGraphFactory< int, int, EpetraNode >::LocalOrdinal
private

Definition at line 324 of file Xpetra_CrsGraphFactory.hpp.

◆ GlobalOrdinal

typedef int Xpetra::CrsGraphFactory< int, int, EpetraNode >::GlobalOrdinal
private

Definition at line 325 of file Xpetra_CrsGraphFactory.hpp.

◆ Node

typedef EpetraNode Xpetra::CrsGraphFactory< int, int, EpetraNode >::Node
private

Definition at line 326 of file Xpetra_CrsGraphFactory.hpp.

Constructor & Destructor Documentation

◆ CrsGraphFactory()

Xpetra::CrsGraphFactory< int, int, EpetraNode >::CrsGraphFactory ( )
inlineprivate

Private constructor. This is a static class.

Definition at line 330 of file Xpetra_CrsGraphFactory.hpp.

Member Function Documentation

◆ Build() [1/6]

static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap)
inlinestatic

Constructor for empty graph (intended use is an import/export target - can't insert entries directly)

Definition at line 335 of file Xpetra_CrsGraphFactory.hpp.

◆ Build() [2/6]

static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  map,
size_t  maxNumEntriesPerRow 
)
inlinestatic

Definition at line 350 of file Xpetra_CrsGraphFactory.hpp.

◆ Build() [3/6]

static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
const ArrayRCP< const size_t > &  NumEntriesPerRowToAlloc,
const Teuchos::RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inlinestatic

Definition at line 366 of file Xpetra_CrsGraphFactory.hpp.

◆ Build() [4/6]

static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
size_t  maxNumEntriesPerRow,
const Teuchos::RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inlinestatic

Constructor specifying column Map and number of entries per row.

Definition at line 383 of file Xpetra_CrsGraphFactory.hpp.

◆ Build() [5/6]

static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &  sourceGraph,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  domainMap = Teuchos::null,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rangeMap = Teuchos::null,
const RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)
inlinestatic

Constructor using fused import.

Definition at line 403 of file Xpetra_CrsGraphFactory.hpp.

◆ Build() [6/6]

static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::CrsGraphFactory< int, int, EpetraNode >::Build ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
const Teuchos::ArrayRCP< size_t > &  rowPointers,
const Teuchos::ArrayRCP< LocalOrdinal > &  columnIndices,
const Teuchos::RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inlinestatic

Constructor specifying column Map and arrays containing the graph in sorted, local ids.

Parameters
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
rowPointers[in] The beginning of each row in the graph, as in a CSR "rowptr" array. The length of this vector should be equal to the number of rows in the graph, plus one. This last entry should store the nunber of nonzeros in the graph.
columnIndices[in] The local indices of the columns, as in a CSR "colind" array. The length of this vector should be equal to the number of unknowns in the graph.
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 558 of file Xpetra_CrsGraphFactory.hpp.


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