Xpetra_TpetraCrsGraph.hpp
Go to the documentation of this file.
1 // @HEADER
2 //
3 // ***********************************************************************
4 //
5 // Xpetra: A linear algebra interface package
6 // Copyright 2012 Sandia Corporation
7 //
8 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Redistribution and use in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 //
15 // 1. Redistributions of source code must retain the above copyright
16 // notice, this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright
19 // notice, this list of conditions and the following disclaimer in the
20 // documentation and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of the Corporation nor the names of the
23 // contributors may be used to endorse or promote products derived from
24 // this software without specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 //
38 // Questions? Contact
39 // Jonathan Hu (jhu@sandia.gov)
40 // Andrey Prokopenko (aprokop@sandia.gov)
41 // Ray Tuminaro (rstumin@sandia.gov)
42 //
43 // ***********************************************************************
44 //
45 // @HEADER
46 #ifndef XPETRA_TPETRACRSGRAPH_HPP
47 #define XPETRA_TPETRACRSGRAPH_HPP
48 
49 /* this file is automatically generated - do not edit (see script/tpetra.py) */
50 
52 
53 #include "Xpetra_CrsGraph.hpp"
54 
55 #include "Tpetra_CrsGraph.hpp"
56 
57 #include "Xpetra_Utils.hpp"
58 
59 #include "Xpetra_TpetraMap.hpp"
60 
61 #include "Xpetra_TpetraImport.hpp"
62 
63 #include "Xpetra_TpetraExport.hpp"
64 
65 namespace Xpetra {
66 
67  // TODO: move that elsewhere
68  template <class LocalOrdinal, class GlobalOrdinal, class Node>
69  RCP<const CrsGraph<LocalOrdinal, GlobalOrdinal, Node> >
70  toXpetra (RCP<const Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > graph);
71 
72  template <class LocalOrdinal, class GlobalOrdinal, class Node>
73  RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > >
74  toTpetra (const RCP<const CrsGraph< LocalOrdinal, GlobalOrdinal, Node> >& graph);
75 
76  template <class LocalOrdinal = CrsGraph<>::local_ordinal_type,
77  class GlobalOrdinal = typename CrsGraph<LocalOrdinal>::global_ordinal_type,
80  : public CrsGraph<LocalOrdinal,GlobalOrdinal,Node>
81  {
82 
83  // The following typedef is used by the XPETRA_DYNAMIC_CAST() macro.
86 
87  public:
88 
90 
91 
93  TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
94  : graph_(Teuchos::rcp(new Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >(toTpetra(rowMap), maxNumEntriesPerRow, toTpetra(pftype), params))) { }
95 
97  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
98  : graph_(Teuchos::rcp(new Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >(toTpetra(rowMap), NumEntriesPerRowToAlloc, toTpetra(pftype), params))) { }
99 
101  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
102  : graph_(Teuchos::rcp(new Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >(toTpetra(rowMap), toTpetra(colMap), maxNumEntriesPerRow, toTpetra(pftype), params))) { }
103 
105  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
106  : graph_(Teuchos::rcp(new Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >(toTpetra(rowMap), toTpetra(colMap), NumEntriesPerRowToAlloc, toTpetra(pftype), params))) { }
107 
109  virtual ~TpetraCrsGraph() { }
110 
112 
114 
115 
117  void insertGlobalIndices(GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices) { XPETRA_MONITOR("TpetraCrsGraph::insertGlobalIndices"); graph_->insertGlobalIndices(globalRow, indices); }
118 
120  void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices) { XPETRA_MONITOR("TpetraCrsGraph::insertLocalIndices"); graph_->insertLocalIndices(localRow, indices); }
121 
123  void removeLocalIndices(LocalOrdinal localRow) { XPETRA_MONITOR("TpetraCrsGraph::removeLocalIndices"); graph_->removeLocalIndices(localRow); }
124 
126 
128 
129 
131  void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null) { XPETRA_MONITOR("TpetraCrsGraph::fillComplete"); graph_->fillComplete(toTpetra(domainMap), toTpetra(rangeMap), params); }
132 
134  void fillComplete(const RCP< ParameterList > &params=null) { XPETRA_MONITOR("TpetraCrsGraph::fillComplete"); graph_->fillComplete(params); }
135 
137 
139 
140 
142  RCP< const Comm< int > > getComm() const { XPETRA_MONITOR("TpetraCrsGraph::getComm"); return graph_->getComm(); }
143 
145  RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const { XPETRA_MONITOR("TpetraCrsGraph::getRowMap"); return toXpetra(graph_->getRowMap()); }
146 
148  RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const { XPETRA_MONITOR("TpetraCrsGraph::getColMap"); return toXpetra(graph_->getColMap()); }
149 
151  RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const { XPETRA_MONITOR("TpetraCrsGraph::getDomainMap"); return toXpetra(graph_->getDomainMap()); }
152 
154  RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const { XPETRA_MONITOR("TpetraCrsGraph::getRangeMap"); return toXpetra(graph_->getRangeMap()); }
155 
157  RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const { XPETRA_MONITOR("TpetraCrsGraph::getImporter"); return toXpetra(graph_->getImporter()); }
158 
160  RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const { XPETRA_MONITOR("TpetraCrsGraph::getExporter"); return toXpetra(graph_->getExporter()); }
161 
163  global_size_t getGlobalNumRows() const { XPETRA_MONITOR("TpetraCrsGraph::getGlobalNumRows"); return graph_->getGlobalNumRows(); }
164 
166  global_size_t getGlobalNumCols() const { XPETRA_MONITOR("TpetraCrsGraph::getGlobalNumCols"); return graph_->getGlobalNumCols(); }
167 
169  size_t getNodeNumRows() const { XPETRA_MONITOR("TpetraCrsGraph::getNodeNumRows"); return graph_->getNodeNumRows(); }
170 
172  size_t getNodeNumCols() const { XPETRA_MONITOR("TpetraCrsGraph::getNodeNumCols"); return graph_->getNodeNumCols(); }
173 
175  GlobalOrdinal getIndexBase() const { XPETRA_MONITOR("TpetraCrsGraph::getIndexBase"); return graph_->getIndexBase(); }
176 
178  global_size_t getGlobalNumEntries() const { XPETRA_MONITOR("TpetraCrsGraph::getGlobalNumEntries"); return graph_->getGlobalNumEntries(); }
179 
181  size_t getNodeNumEntries() const { XPETRA_MONITOR("TpetraCrsGraph::getNodeNumEntries"); return graph_->getNodeNumEntries(); }
182 
184  size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const { XPETRA_MONITOR("TpetraCrsGraph::getNumEntriesInGlobalRow"); return graph_->getNumEntriesInGlobalRow(globalRow); }
185 
187  size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const { XPETRA_MONITOR("TpetraCrsGraph::getNumEntriesInLocalRow"); return graph_->getNumEntriesInLocalRow(localRow); }
188 
190  size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const { XPETRA_MONITOR("TpetraCrsGraph::getNumAllocatedEntriesInGlobalRow"); return graph_->getNumAllocatedEntriesInGlobalRow(globalRow); }
191 
193  size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const { XPETRA_MONITOR("TpetraCrsGraph::getNumAllocatedEntriesInLocalRow"); return graph_->getNumAllocatedEntriesInLocalRow(localRow); }
194 
196  size_t getGlobalMaxNumRowEntries() const { XPETRA_MONITOR("TpetraCrsGraph::getGlobalMaxNumRowEntries"); return graph_->getGlobalMaxNumRowEntries(); }
197 
199  size_t getNodeMaxNumRowEntries() const { XPETRA_MONITOR("TpetraCrsGraph::getNodeMaxNumRowEntries"); return graph_->getNodeMaxNumRowEntries(); }
200 
202  bool hasColMap() const { XPETRA_MONITOR("TpetraCrsGraph::hasColMap"); return graph_->hasColMap(); }
203 
205  bool isLocallyIndexed() const { XPETRA_MONITOR("TpetraCrsGraph::isLocallyIndexed"); return graph_->isLocallyIndexed(); }
206 
208  bool isGloballyIndexed() const { XPETRA_MONITOR("TpetraCrsGraph::isGloballyIndexed"); return graph_->isGloballyIndexed(); }
209 
211  bool isFillComplete() const { XPETRA_MONITOR("TpetraCrsGraph::isFillComplete"); return graph_->isFillComplete(); }
212 
214  bool isStorageOptimized() const { XPETRA_MONITOR("TpetraCrsGraph::isStorageOptimized"); return graph_->isStorageOptimized(); }
215 
217  void getGlobalRowView(GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const { XPETRA_MONITOR("TpetraCrsGraph::getGlobalRowView"); graph_->getGlobalRowView(GlobalRow, Indices); }
218 
220  void getLocalRowView(LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const { XPETRA_MONITOR("TpetraCrsGraph::getLocalRowView"); graph_->getLocalRowView(LocalRow, indices); }
221 
222 
225  // mfh 07 May 2018: See GitHub Issue #2565.
226  constexpr bool computeLocalTriangularConstants = true;
227  graph_->computeGlobalConstants(computeLocalTriangularConstants);
228  }
229 
231 
233 
234 
236  std::string description() const { XPETRA_MONITOR("TpetraCrsGraph::description"); return graph_->description(); }
237 
239  void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const { XPETRA_MONITOR("TpetraCrsGraph::describe"); graph_->describe(out, verbLevel); }
240 
242 
244 
245 
247  ArrayRCP< const size_t > getNodeRowPtrs() const { XPETRA_MONITOR("TpetraCrsGraph::getNodeRowPtrs"); return graph_->getNodeRowPtrs(); }
248 
250 
252  //{@
253 
256 
260  XPETRA_MONITOR("TpetraCrsGraph::doImport");
261 
262  XPETRA_DYNAMIC_CAST(const TpetraCrsGraphClass, source, tSource, "Xpetra::TpetraCrsGraph::doImport only accept Xpetra::TpetraCrsGraph as input arguments.");//TODO: remove and use toTpetra()
263  RCP< const Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > v = tSource.getTpetra_CrsGraph();
264  //graph_->doImport(toTpetraCrsGraph(source), *tImporter.getTpetra_Import(), toTpetra(CM));
265 
266  graph_->doImport(*v, toTpetra(importer), toTpetra(CM));
267  }
268 
272  XPETRA_MONITOR("TpetraCrsGraph::doExport");
273 
274  XPETRA_DYNAMIC_CAST(const TpetraCrsGraphClass, dest, tDest, "Xpetra::TpetraCrsGraph::doImport only accept Xpetra::TpetraCrsGraph as input arguments.");//TODO: remove and use toTpetra()
276  graph_->doExport(*v, toTpetra(importer), toTpetra(CM));
277 
278  }
279 
283  XPETRA_MONITOR("TpetraCrsGraph::doImport");
284 
285  XPETRA_DYNAMIC_CAST(const TpetraCrsGraphClass, source, tSource, "Xpetra::TpetraCrsGraph::doImport only accept Xpetra::TpetraCrsGraph as input arguments.");//TODO: remove and use toTpetra()
286  RCP< const Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > v = tSource.getTpetra_CrsGraph();
287 
288  graph_->doImport(*v, toTpetra(exporter), toTpetra(CM));
289 
290  }
291 
295  XPETRA_MONITOR("TpetraCrsGraph::doExport");
296 
297  XPETRA_DYNAMIC_CAST(const TpetraCrsGraphClass, dest, tDest, "Xpetra::TpetraCrsGraph::doImport only accept Xpetra::TpetraCrsGraph as input arguments.");//TODO: remove and use toTpetra()
299 
300  graph_->doExport(*v, toTpetra(exporter), toTpetra(CM));
301 
302  }
303 
304  // @}
305 
307 
308 
310  TpetraCrsGraph(const Teuchos::RCP<Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > &graph) : graph_(graph) { }
311 
314 
316 
317  private:
319  }; // TpetraCrsGraph class
320 
321  // TODO: move that elsewhere
322  template <class LocalOrdinal, class GlobalOrdinal, class Node>
324  toXpetra (RCP<const Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > graph)
325  { //TODO: return TpetraCrsGraph instead of CrsGraph
326  // typedef TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node> TpetraCrsGraphClass;
327  // XPETRA_RCP_DYNAMIC_CAST(const TpetraCrsGraphClass, graph, tGraph, "toTpetra");
328  if (graph.is_null ()) {
329  return Teuchos::null;
330  }
332  Teuchos::rcp_const_cast<Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > (graph);
334  }
335 
336  template <class LocalOrdinal, class GlobalOrdinal, class Node>
337  RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > >
339  {
340  typedef TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node> TpetraCrsGraphClass;
341  XPETRA_RCP_DYNAMIC_CAST(const TpetraCrsGraphClass, graph, tpetraCrsGraph, "toTpetra");
342  return tpetraCrsGraph->getTpetra_CrsGraph ();
343  }
344 
345 
346 #ifdef HAVE_XPETRA_EPETRA
347 
348 #if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_INT))) || \
349  (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_INT))))
350 
351  // specialization of TpetraCrsMatrix for GO=LO=int
352  template <>
353  class TpetraCrsGraph<int,int,EpetraNode>
354  : public CrsGraph<int,int,EpetraNode>
355  {
356  typedef int LocalOrdinal;
357  typedef int GlobalOrdinal;
358  typedef EpetraNode Node;
359 
360  // The following typedef is used by the XPETRA_DYNAMIC_CAST() macro.
363 
364  public:
365 
367 
368 
370  TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
372  }
373 
375  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
377  }
378 
380  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
382  }
383 
385  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
387  }
388 
390  virtual ~TpetraCrsGraph() { }
391 
393 
395 
396 
399 
401  void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices) { }
402 
404  void removeLocalIndices(LocalOrdinal localRow) { }
405 
407 
409 
410 
412  void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null) { }
413 
415  void fillComplete(const RCP< ParameterList > &params=null) { }
416 
418 
420 
421 
423  RCP< const Comm< int > > getComm() const { return Teuchos::null; }
424 
427 
430 
433 
436 
439 
442 
444  global_size_t getGlobalNumRows() const { return 0; }
445 
447  global_size_t getGlobalNumCols() const { return 0; }
448 
450  size_t getNodeNumRows() const { return 0; }
451 
453  size_t getNodeNumCols() const { return 0; }
454 
456  GlobalOrdinal getIndexBase() const { return 0; }
457 
459  global_size_t getGlobalNumEntries() const { return 0; }
460 
462  size_t getNodeNumEntries() const { return 0; }
463 
465  size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const { return 0; }
466 
468  size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const { return 0; }
469 
471  size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const { return 0; }
472 
474  size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const { return 0; }
475 
477  size_t getGlobalMaxNumRowEntries() const { return 0; }
478 
480  size_t getNodeMaxNumRowEntries() const { return 0; }
481 
483  bool hasColMap() const { return false; }
484 
486  bool isLocallyIndexed() const { return false; }
487 
489  bool isGloballyIndexed() const { return false; }
490 
492  bool isFillComplete() const { return false; }
493 
495  bool isStorageOptimized() const { return false; }
496 
499 
502 
505 
507 
509 
510 
512  std::string description() const { return std::string(""); }
513 
516 
518 
520 
521 
524 
526 
528  //{@
529 
532 
536 
540 
544 
548 
549  // @}
550 
552 
553 
555  TpetraCrsGraph(const Teuchos::RCP<Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > &graph) {
557  }
558 
561 
563  }; // TpetraCrsGraph class (specialization for LO=GO=int and NO=EpetraNode)
564 #endif
565 
566 #if ((defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_OPENMP) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))) || \
567  (!defined(EPETRA_HAVE_OMP) && (!defined(HAVE_TPETRA_INST_SERIAL) || !defined(HAVE_TPETRA_INST_INT_LONG_LONG))))
568 
569  // specialization of TpetraCrsMatrix for GO=long long and NO=EpetraNode
570  template <>
571  class TpetraCrsGraph<int,long long,EpetraNode>
572  : public CrsGraph<int,long long,EpetraNode>
573  {
574  typedef int LocalOrdinal;
575  typedef long long GlobalOrdinal;
576  typedef EpetraNode Node;
577 
578  // The following typedef is used by the XPETRA_DYNAMIC_CAST() macro.
581 
582  public:
583 
585 
586 
588  TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
590  }
591 
593  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
595  }
596 
598  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
600  }
601 
603  TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null) {
605  }
606 
608  virtual ~TpetraCrsGraph() { }
609 
611 
613 
614 
617 
619  void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices) { }
620 
622  void removeLocalIndices(LocalOrdinal localRow) { }
623 
625 
627 
628 
630  void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null) { }
631 
633  void fillComplete(const RCP< ParameterList > &params=null) { }
634 
636 
638 
639 
641  RCP< const Comm< int > > getComm() const { return Teuchos::null; }
642 
645 
648 
651 
654 
657 
660 
662  global_size_t getGlobalNumRows() const { return 0; }
663 
665  global_size_t getGlobalNumCols() const { return 0; }
666 
668  size_t getNodeNumRows() const { return 0; }
669 
671  size_t getNodeNumCols() const { return 0; }
672 
674  GlobalOrdinal getIndexBase() const { return 0; }
675 
677  global_size_t getGlobalNumEntries() const { return 0; }
678 
680  size_t getNodeNumEntries() const { return 0; }
681 
683  size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const { return 0; }
684 
686  size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const { return 0; }
687 
689  size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const { return 0; }
690 
692  size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const { return 0; }
693 
695  size_t getGlobalMaxNumRowEntries() const { return 0; }
696 
698  size_t getNodeMaxNumRowEntries() const { return 0; }
699 
701  bool hasColMap() const { return false; }
702 
704  bool isLocallyIndexed() const { return false; }
705 
707  bool isGloballyIndexed() const { return false; }
708 
710  bool isFillComplete() const { return false; }
711 
713  bool isStorageOptimized() const { return false; }
714 
717 
720 
723 
725 
727 
728 
730  std::string description() const { return std::string(""); }
731 
734 
736 
738 
739 
742 
744 
746  //{@
747 
750 
754 
758 
762 
766 
767  // @}
768 
770 
771 
773  TpetraCrsGraph(const Teuchos::RCP<Tpetra::CrsGraph<LocalOrdinal, GlobalOrdinal, Node> > &graph) {
775  }
776 
779 
781  }; // TpetraCrsGraph class (specialization for GO=long long and NO=EpetraNode)
782 #endif
783 
784 #endif // HAVE_XPETRA_EPETRA
785 
786 } // Xpetra namespace
787 
788 #define XPETRA_TPETRACRSGRAPH_SHORT
789 #endif // XPETRA_TPETRACRSGRAPH_HPP
Xpetra::TpetraCrsGraph::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Import.
Definition: Xpetra_TpetraCrsGraph.hpp:258
Xpetra::TpetraCrsGraph::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying (possibly different) number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:97
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeRowPtrs
ArrayRCP< const size_t > getNodeRowPtrs() const
Get an ArrayRCP of the row-offsets.
Definition: Xpetra_TpetraCrsGraph.hpp:523
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::isFillComplete
bool isFillComplete() const
Whether fillComplete() has been called and the graph is in compute mode.
Definition: Xpetra_TpetraCrsGraph.hpp:710
Xpetra::TpetraCrsGraph::getColMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const
Returns the Map that describes the column distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:148
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeMaxNumRowEntries
size_t getNodeMaxNumRowEntries() const
Maximum number of entries in all rows owned by the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:480
XPETRA_RCP_DYNAMIC_CAST
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
Definition: Xpetra_Exceptions.hpp:65
Kokkos::Compat::KokkosSerialWrapperNode
Definition: Kokkos_SerialNode.hpp:57
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumEntriesInLocalRow
size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:468
Xpetra::TpetraCrsGraph::getGlobalNumEntries
global_size_t getGlobalNumEntries() const
Returns the global number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:178
Xpetra::TpetraCrsGraph::getGlobalNumCols
global_size_t getGlobalNumCols() const
Returns the number of global columns in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:166
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::fillComplete
void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null)
Signal that data entry is complete, specifying domain and range maps.
Definition: Xpetra_TpetraCrsGraph.hpp:412
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.
Definition: Xpetra_TpetraCrsGraph.hpp:773
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::hasColMap
bool hasColMap() const
Whether the graph has a column Map.
Definition: Xpetra_TpetraCrsGraph.hpp:483
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::insertLocalIndices
void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
Insert local indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:401
Xpetra::TpetraCrsGraph::getDomainMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:151
Xpetra::TpetraCrsGraph::~TpetraCrsGraph
virtual ~TpetraCrsGraph()
Destructor.
Definition: Xpetra_TpetraCrsGraph.hpp:109
Xpetra
Xpetra namespace
Definition: Xpetra_BlockedCrsMatrix.hpp:86
Xpetra::TpetraCrsGraph::getRowMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const
Returns the Map that describes the row distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:145
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeNumEntries
size_t getNodeNumEntries() const
Returns the local number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:462
Xpetra::TpetraCrsGraph::getLocalRowView
void getLocalRowView(LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
Return a const, nonpersisting view of local indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:220
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Export.
Definition: Xpetra_TpetraCrsGraph.hpp:538
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getComm
RCP< const Comm< int > > getComm() const
Returns the communicator.
Definition: Xpetra_TpetraCrsGraph.hpp:641
Xpetra::global_size_t
size_t global_size_t
Global size_t object.
Definition: Xpetra_ConfigDefs.hpp:170
Xpetra_CrsGraph.hpp
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::~TpetraCrsGraph
virtual ~TpetraCrsGraph()
Destructor.
Definition: Xpetra_TpetraCrsGraph.hpp:390
Xpetra::TpetraCrsGraph::getRangeMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:154
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::LocalOrdinal
int LocalOrdinal
Definition: Xpetra_TpetraCrsGraph.hpp:356
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Export.
Definition: Xpetra_TpetraCrsGraph.hpp:756
Xpetra::TpetraCrsGraph::getNumEntriesInGlobalRow
size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of entries on this node in the specified global row.
Definition: Xpetra_TpetraCrsGraph.hpp:184
Xpetra::TpetraCrsGraph::TpetraCrsGraph
TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:93
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getTpetra_CrsGraph
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsGraph() const
Get the underlying Tpetra graph.
Definition: Xpetra_TpetraCrsGraph.hpp:778
Xpetra::TpetraCrsGraph::isGloballyIndexed
bool isGloballyIndexed() const
Whether column indices are stored using global indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:208
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:598
Xpetra::TpetraCrsGraph::isStorageOptimized
bool isStorageOptimized() const
Returns true if storage has been optimized.
Definition: Xpetra_TpetraCrsGraph.hpp:214
Xpetra::toTpetra
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > toTpetra(const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
Definition: Xpetra_TpetraCrsGraph.hpp:338
Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >
Xpetra::DynamicProfile
Definition: Xpetra_ConfigDefs.hpp:187
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getExporter
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const
Returns the exporter associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:441
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:588
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::fillComplete
void fillComplete(const RCP< ParameterList > &params=null)
Signal that data entry is complete.
Definition: Xpetra_TpetraCrsGraph.hpp:415
Xpetra::TpetraCrsGraph::getGlobalMaxNumRowEntries
size_t getGlobalMaxNumRowEntries() const
Maximum number of entries in all rows over all processes.
Definition: Xpetra_TpetraCrsGraph.hpp:196
Xpetra::TpetraCrsGraph::getMap
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
Implements DistObject interface.
Definition: Xpetra_TpetraCrsGraph.hpp:255
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumRows
global_size_t getGlobalNumRows() const
Returns the number of global rows in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:444
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNodeNumRows
size_t getNodeNumRows() const
Returns the number of graph rows owned on the calling node.
Definition: Xpetra_TpetraCrsGraph.hpp:668
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::describe
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with some verbosity level to an FancyOStream object.
Definition: Xpetra_TpetraCrsGraph.hpp:733
XPETRA_DYNAMIC_CAST
#define XPETRA_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
Definition: Xpetra_Exceptions.hpp:58
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getComm
RCP< const Comm< int > > getComm() const
Returns the communicator.
Definition: Xpetra_TpetraCrsGraph.hpp:423
Xpetra_TpetraExport.hpp
Xpetra::TpetraCrsGraph::getNodeMaxNumRowEntries
size_t getNodeMaxNumRowEntries() const
Maximum number of entries in all rows owned by the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:199
Xpetra::TpetraCrsGraph::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:105
Xpetra::Export
Definition: Xpetra_Export.hpp:62
Xpetra::TpetraCrsGraph::fillComplete
void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null)
Signal that data entry is complete, specifying domain and range maps.
Definition: Xpetra_TpetraCrsGraph.hpp:131
Xpetra::TpetraCrsGraph::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:101
Xpetra::TpetraCrsGraph::map_type
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
Definition: Xpetra_TpetraCrsGraph.hpp:85
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Export (using an Importer).
Definition: Xpetra_TpetraCrsGraph.hpp:764
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::computeGlobalConstants
void computeGlobalConstants()
Dummy implementation for computeGlobalConstants.
Definition: Xpetra_TpetraCrsGraph.hpp:722
Xpetra::toXpetra
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
Definition: Xpetra_EpetraCrsGraph.cpp:168
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getMap
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
Implements DistObject interface.
Definition: Xpetra_TpetraCrsGraph.hpp:531
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNumAllocatedEntriesInGlobalRow
size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of allocated entries for this node in the specified global row .
Definition: Xpetra_TpetraCrsGraph.hpp:689
Xpetra::TpetraCrsGraph::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Import (using an Exporter).
Definition: Xpetra_TpetraCrsGraph.hpp:281
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNodeNumCols
size_t getNodeNumCols() const
Returns the number of columns connected to the locally owned rows of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:671
Xpetra::CrsGraph::node_type
Node node_type
Definition: Xpetra_CrsGraph.hpp:86
rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumEntriesInGlobalRow
size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of entries on this node in the specified global row.
Definition: Xpetra_TpetraCrsGraph.hpp:465
Teuchos::EVerbosityLevel
EVerbosityLevel
Xpetra_Utils.hpp
Xpetra::CrsGraph::global_ordinal_type
GlobalOrdinal global_ordinal_type
Definition: Xpetra_CrsGraph.hpp:85
Xpetra::TpetraCrsGraph::TpetraCrsGraphClass
TpetraCrsGraph< LocalOrdinal, GlobalOrdinal, Node > TpetraCrsGraphClass
Definition: Xpetra_TpetraCrsGraph.hpp:84
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getExporter
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const
Returns the exporter associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:659
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Export (using an Importer).
Definition: Xpetra_TpetraCrsGraph.hpp:546
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::Node
EpetraNode Node
Definition: Xpetra_TpetraCrsGraph.hpp:358
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalRowView
void getLocalRowView(LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
Return a const, nonpersisting view of local indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:501
Teuchos::ArrayView
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::computeGlobalConstants
void computeGlobalConstants()
Dummy implementation for computeGlobalConstants.
Definition: Xpetra_TpetraCrsGraph.hpp:504
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getRangeMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:653
Xpetra::Map
Definition: Xpetra_Map.hpp:90
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::fillComplete
void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null)
Signal that data entry is complete, specifying domain and range maps.
Definition: Xpetra_TpetraCrsGraph.hpp:630
Xpetra::Import
Definition: Xpetra_Import.hpp:62
Xpetra::CombineMode
CombineMode
Xpetra::Combine Mode enumerable type.
Definition: Xpetra_ConfigDefs.hpp:214
Xpetra::TpetraCrsGraph::getNodeNumRows
size_t getNodeNumRows() const
Returns the number of graph rows owned on the calling node.
Definition: Xpetra_TpetraCrsGraph.hpp:169
Xpetra::TpetraCrsGraph::getGlobalRowView
void getGlobalRowView(GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
Return a const, nonpersisting view of global indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:217
Teuchos::RCP
Xpetra::TpetraCrsGraph::getNumAllocatedEntriesInGlobalRow
size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of allocated entries for this node in the specified global row .
Definition: Xpetra_TpetraCrsGraph.hpp:190
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::GlobalOrdinal
long long GlobalOrdinal
Definition: Xpetra_TpetraCrsGraph.hpp:575
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumAllocatedEntriesInGlobalRow
size_t getNumAllocatedEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of allocated entries for this node in the specified global row .
Definition: Xpetra_TpetraCrsGraph.hpp:471
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getColMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const
Returns the Map that describes the column distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:429
Xpetra::TpetraCrsGraph::computeGlobalConstants
void computeGlobalConstants()
Force the computation of global constants if we don't have them.
Definition: Xpetra_TpetraCrsGraph.hpp:224
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Import (using an Exporter).
Definition: Xpetra_TpetraCrsGraph.hpp:760
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::hasColMap
bool hasColMap() const
Whether the graph has a column Map.
Definition: Xpetra_TpetraCrsGraph.hpp:701
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNodeMaxNumRowEntries
size_t getNodeMaxNumRowEntries() const
Maximum number of entries in all rows owned by the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:698
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:603
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::isStorageOptimized
bool isStorageOptimized() const
Returns true if storage has been optimized.
Definition: Xpetra_TpetraCrsGraph.hpp:713
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getColMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const
Returns the Map that describes the column distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:647
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:370
Xpetra_TpetraMap.hpp
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getIndexBase
GlobalOrdinal getIndexBase() const
Returns the index base for global indices for this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:674
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getDomainMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:432
Xpetra::TpetraCrsGraph::getImporter
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const
Returns the importer associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:157
Teuchos::ArrayRCP
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getMap
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getMap() const
Implements DistObject interface.
Definition: Xpetra_TpetraCrsGraph.hpp:749
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Import (using an Exporter).
Definition: Xpetra_TpetraCrsGraph.hpp:542
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getIndexBase
GlobalOrdinal getIndexBase() const
Returns the index base for global indices for this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:456
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNodeRowPtrs
ArrayRCP< const size_t > getNodeRowPtrs() const
Get an ArrayRCP of the row-offsets.
Definition: Xpetra_TpetraCrsGraph.hpp:741
Xpetra::TpetraCrsGraph::getNodeNumCols
size_t getNodeNumCols() const
Returns the number of columns connected to the locally owned rows of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:172
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNumEntriesInLocalRow
size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:686
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isLocallyIndexed
bool isLocallyIndexed() const
Whether column indices are stored using local indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:486
Xpetra::TpetraCrsGraph::insertGlobalIndices
void insertGlobalIndices(GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
Insert global indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:117
Teuchos::basic_FancyOStream
Xpetra::TpetraCrsGraph::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
Export (using an Importer).
Definition: Xpetra_TpetraCrsGraph.hpp:293
XPETRA_TPETRA_ETI_EXCEPTION
#define XPETRA_TPETRA_ETI_EXCEPTION(cl, obj, go, node)
Definition: Xpetra_Exceptions.hpp:79
Xpetra::CrsGraph
Definition: Xpetra_CrsGraph.hpp:80
Xpetra::TpetraMap
Definition: Xpetra_TpetraMap.hpp:79
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::map_type
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
Definition: Xpetra_TpetraCrsGraph.hpp:580
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying (possibly different) number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:593
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::removeLocalIndices
void removeLocalIndices(LocalOrdinal localRow)
Remove all graph indices from the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:404
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getLocalRowView
void getLocalRowView(LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
Return a const, nonpersisting view of local indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:719
Xpetra::TpetraCrsGraph::TpetraCrsGraph
TpetraCrsGraph(const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.
Definition: Xpetra_TpetraCrsGraph.hpp:310
Xpetra::TpetraCrsGraph::getTpetra_CrsGraph
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsGraph() const
Get the underlying Tpetra graph.
Definition: Xpetra_TpetraCrsGraph.hpp:313
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getDomainMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:650
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNumAllocatedEntriesInLocalRow
size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of allocated entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:692
Xpetra_TpetraImport.hpp
Xpetra::TpetraCrsGraph::hasColMap
bool hasColMap() const
Whether the graph has a column Map.
Definition: Xpetra_TpetraCrsGraph.hpp:202
Xpetra::TpetraCrsGraph::getExporter
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const
Returns the exporter associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:160
Xpetra::TpetraCrsGraph::getGlobalNumRows
global_size_t getGlobalNumRows() const
Returns the number of global rows in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:163
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNodeNumEntries
size_t getNodeNumEntries() const
Returns the local number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:680
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::isGloballyIndexed
bool isGloballyIndexed() const
Whether column indices are stored using global indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:707
Xpetra::TpetraCrsGraph::removeLocalIndices
void removeLocalIndices(LocalOrdinal localRow)
Remove all graph indices from the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:123
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::LocalOrdinal
int LocalOrdinal
Definition: Xpetra_TpetraCrsGraph.hpp:574
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getRangeMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const
Returns the Map associated with the domain of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:435
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getImporter
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const
Returns the importer associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:656
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::describe
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with some verbosity level to an FancyOStream object.
Definition: Xpetra_TpetraCrsGraph.hpp:515
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalRowView
void getGlobalRowView(GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
Return a const, nonpersisting view of global indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:498
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::removeLocalIndices
void removeLocalIndices(LocalOrdinal localRow)
Remove all graph indices from the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:622
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumEntries
global_size_t getGlobalNumEntries() const
Returns the global number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:459
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getGlobalNumRows
global_size_t getGlobalNumRows() const
Returns the number of global rows in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:662
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeNumRows
size_t getNodeNumRows() const
Returns the number of graph rows owned on the calling node.
Definition: Xpetra_TpetraCrsGraph.hpp:450
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::insertGlobalIndices
void insertGlobalIndices(GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
Insert global indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:398
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::GlobalOrdinal
int GlobalOrdinal
Definition: Xpetra_TpetraCrsGraph.hpp:357
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraphClass
TpetraCrsGraph< LocalOrdinal, GlobalOrdinal, Node > TpetraCrsGraphClass
Definition: Xpetra_TpetraCrsGraph.hpp:579
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::description
std::string description() const
Return a simple one-line description of this object.
Definition: Xpetra_TpetraCrsGraph.hpp:730
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getTpetra_CrsGraph
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsGraph() const
Get the underlying Tpetra graph.
Definition: Xpetra_TpetraCrsGraph.hpp:560
Xpetra::TpetraCrsGraph::description
std::string description() const
Return a simple one-line description of this object.
Definition: Xpetra_TpetraCrsGraph.hpp:236
Xpetra_TpetraConfigDefs.hpp
Xpetra::TpetraCrsGraph::isLocallyIndexed
bool isLocallyIndexed() const
Whether column indices are stored using local indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:205
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isGloballyIndexed
bool isGloballyIndexed() const
Whether column indices are stored using global indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:489
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::map_type
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
Definition: Xpetra_TpetraCrsGraph.hpp:362
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getGlobalNumEntries
global_size_t getGlobalNumEntries() const
Returns the global number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:677
Xpetra::TpetraCrsGraph::fillComplete
void fillComplete(const RCP< ParameterList > &params=null)
Signal that data entry is complete.
Definition: Xpetra_TpetraCrsGraph.hpp:134
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::Node
EpetraNode Node
Definition: Xpetra_TpetraCrsGraph.hpp:576
Xpetra::TpetraCrsGraph::doExport
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Export.
Definition: Xpetra_TpetraCrsGraph.hpp:270
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::insertLocalIndices
void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
Insert local indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:619
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getGlobalMaxNumRowEntries
size_t getGlobalMaxNumRowEntries() const
Maximum number of entries in all rows over all processes.
Definition: Xpetra_TpetraCrsGraph.hpp:695
Xpetra::TpetraCrsGraph::getNumEntriesInLocalRow
size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:187
Xpetra::TpetraCrsGraph::graph_
RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > graph_
Definition: Xpetra_TpetraCrsGraph.hpp:318
Xpetra::TpetraCrsGraph::insertLocalIndices
void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
Insert local indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:120
Xpetra::TpetraCrsGraph::getComm
RCP< const Comm< int > > getComm() const
Returns the communicator.
Definition: Xpetra_TpetraCrsGraph.hpp:142
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getRowMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const
Returns the Map that describes the row distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:644
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraphClass
TpetraCrsGraph< LocalOrdinal, GlobalOrdinal, Node > TpetraCrsGraphClass
Definition: Xpetra_TpetraCrsGraph.hpp:361
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getNumEntriesInGlobalRow
size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const
Returns the current number of entries on this node in the specified global row.
Definition: Xpetra_TpetraCrsGraph.hpp:683
Xpetra::TpetraCrsGraph::isFillComplete
bool isFillComplete() const
Whether fillComplete() has been called and the graph is in compute mode.
Definition: Xpetra_TpetraCrsGraph.hpp:211
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Import.
Definition: Xpetra_TpetraCrsGraph.hpp:752
Xpetra::TpetraCrsGraph::getNumAllocatedEntriesInLocalRow
size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of allocated entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:193
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::description
std::string description() const
Return a simple one-line description of this object.
Definition: Xpetra_TpetraCrsGraph.hpp:512
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeNumCols
size_t getNodeNumCols() const
Returns the number of columns connected to the locally owned rows of this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:453
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::insertGlobalIndices
void insertGlobalIndices(GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
Insert global indices into the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:616
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumAllocatedEntriesInLocalRow
size_t getNumAllocatedEntriesInLocalRow(LocalOrdinal localRow) const
Returns the current number of allocated entries on this node in the specified local row.
Definition: Xpetra_TpetraCrsGraph.hpp:474
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getImporter
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const
Returns the importer associated with this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:438
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumCols
global_size_t getGlobalNumCols() const
Returns the number of global columns in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:447
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying (possibly different) number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:375
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isStorageOptimized
bool isStorageOptimized() const
Returns true if storage has been optimized.
Definition: Xpetra_TpetraCrsGraph.hpp:495
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doImport
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Import.
Definition: Xpetra_TpetraCrsGraph.hpp:534
Xpetra::TpetraCrsGraph::getIndexBase
GlobalOrdinal getIndexBase() const
Returns the index base for global indices for this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:175
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::~TpetraCrsGraph
virtual ~TpetraCrsGraph()
Destructor.
Definition: Xpetra_TpetraCrsGraph.hpp:608
Teuchos::Describable::verbLevel_default
static const EVerbosityLevel verbLevel_default
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isFillComplete
bool isFillComplete() const
Whether fillComplete() has been called and the graph is in compute mode.
Definition: Xpetra_TpetraCrsGraph.hpp:492
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::isLocallyIndexed
bool isLocallyIndexed() const
Whether column indices are stored using local indices on the calling process.
Definition: Xpetra_TpetraCrsGraph.hpp:704
XPETRA_MONITOR
#define XPETRA_MONITOR(funcName)
Definition: Xpetra_ConfigDefs.hpp:128
Xpetra::TpetraCrsGraph::getNodeRowPtrs
ArrayRCP< const size_t > getNodeRowPtrs() const
Get an ArrayRCP of the row-offsets.
Definition: Xpetra_TpetraCrsGraph.hpp:247
Xpetra::TpetraCrsGraph::describe
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with some verbosity level to an FancyOStream object.
Definition: Xpetra_TpetraCrsGraph.hpp:239
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.
Definition: Xpetra_TpetraCrsGraph.hpp:555
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and number of entries in each row.
Definition: Xpetra_TpetraCrsGraph.hpp:385
Xpetra::TpetraCrsGraph
Definition: Xpetra_TpetraCrsGraph.hpp:79
Xpetra::TpetraCrsGraph::getNodeNumEntries
size_t getNodeNumEntries() const
Returns the local number of entries in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:181
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getGlobalNumCols
global_size_t getGlobalNumCols() const
Returns the number of global columns in the graph.
Definition: Xpetra_TpetraCrsGraph.hpp:665
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getGlobalRowView
void getGlobalRowView(GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
Return a const, nonpersisting view of global indices in the given row.
Definition: Xpetra_TpetraCrsGraph.hpp:716
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalMaxNumRowEntries
size_t getGlobalMaxNumRowEntries() const
Maximum number of entries in all rows over all processes.
Definition: Xpetra_TpetraCrsGraph.hpp:477
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph
TpetraCrsGraph(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > &params=null)
Constructor specifying column Map and fixed number of entries for each row.
Definition: Xpetra_TpetraCrsGraph.hpp:380
Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::fillComplete
void fillComplete(const RCP< ParameterList > &params=null)
Signal that data entry is complete.
Definition: Xpetra_TpetraCrsGraph.hpp:633
Xpetra::ProfileType
ProfileType
Definition: Xpetra_ConfigDefs.hpp:185
Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getRowMap
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const
Returns the Map that describes the row distribution in this graph.
Definition: Xpetra_TpetraCrsGraph.hpp:426