Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tpetra_Details_makeColMap_decl.hpp
Go to the documentation of this file.
1 #ifndef TPETRA_DETAILS_MAKECOLMAP_DECL_HPP
2 #define TPETRA_DETAILS_MAKECOLMAP_DECL_HPP
3 
4 // @HEADER
5 // *****************************************************************************
6 // Tpetra: Templated Linear Algebra Services Package
7 //
8 // Copyright 2008 NTESS and the Tpetra contributors.
9 // SPDX-License-Identifier: BSD-3-Clause
10 // *****************************************************************************
11 // @HEADER
12 
23 
24 #include "TpetraCore_config.h"
25 #include "Tpetra_Map_fwd.hpp"
26 #include "Tpetra_RowGraph_fwd.hpp"
27 #include "Kokkos_Core.hpp"
28 #include <ostream>
29 
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 namespace Teuchos {
32  // forward declaration of Array
33  template<class T> class Array;
34 
35  // forward declaration of RCP
36  template<class T> class RCP;
37 } // namespace Teuchos
38 #endif // DOXYGEN_SHOULD_SKIP_THIS
39 
40 namespace Tpetra {
41 
42 namespace Details {
43 
95 template <class LO, class GO, class NT>
96 int
97 makeColMap (Teuchos::RCP<const Tpetra::Map<LO, GO, NT> >& colMap,
98  Teuchos::Array<int>& remotePIDs,
99  const Teuchos::RCP<const Tpetra::Map<LO, GO, NT> >& domMap,
100  const RowGraph<LO, GO, NT>& graph,
101  const bool sortEachProcsGids = true,
102  std::ostream* errStrm = NULL);
103 
107 template <class LO, class GO, class NT>
108 int
109 makeColMap (Teuchos::RCP<const Tpetra::Map<LO, GO, NT>>& colMap,
110  const Teuchos::RCP<const Tpetra::Map<LO, GO, NT>>& domMap,
111  Kokkos::View<GO*, typename NT::memory_space> gids,
112  std::ostream* errStrm = NULL);
113 
114 } // namespace Details
115 } // namespace Tpetra
116 
117 #endif // TPETRA_DETAILS_MAKECOLMAP_DECL_HPP
Forward declaration of Tpetra::RowGraph.
A parallel distribution of indices over processes.
int makeColMap(Teuchos::RCP< const Tpetra::Map< LO, GO, NT > > &colMap, Teuchos::Array< int > &remotePIDs, const Teuchos::RCP< const Tpetra::Map< LO, GO, NT > > &domMap, const RowGraph< LO, GO, NT > &graph, const bool sortEachProcsGids=true, std::ostream *errStrm=NULL)
Make the graph&#39;s column Map.
Forward declaration of Tpetra::Map.