Skip to content

Commit

Permalink
[imap] create variant type of supported index maps
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Aug 9, 2024
1 parent 44284fc commit 370117a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions include/ginkgo/core/distributed/index_map_fwd.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GINKGO_INDEX_MAP_FWD_HPP
#define GINKGO_INDEX_MAP_FWD_HPP

#include <variant>

#include <ginkgo/core/base/types.hpp>


namespace gko {
namespace experimental {
namespace distributed {


template <typename LocalIndexType, typename GlobalIndexType>
class index_map;

using index_map_variant =
std::variant<index_map<int32, int32>, index_map<int32, int64>,
index_map<int64, int64>>;


} // namespace distributed
} // namespace experimental
} // namespace gko

#endif // GINKGO_INDEX_MAP_FWD_HPP
1 change: 1 addition & 0 deletions include/ginkgo/ginkgo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

#include <ginkgo/core/distributed/base.hpp>
#include <ginkgo/core/distributed/index_map.hpp>
#include <ginkgo/core/distributed/index_map_fwd.hpp>
#include <ginkgo/core/distributed/lin_op.hpp>
#include <ginkgo/core/distributed/matrix.hpp>
#include <ginkgo/core/distributed/partition.hpp>
Expand Down

0 comments on commit 370117a

Please sign in to comment.