-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
106 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#include <ginkgo/core/config/registry.hpp> | ||
|
||
|
||
namespace gko { | ||
namespace config { | ||
|
||
|
||
template <> | ||
linop_map& registry::get_map_impl<linop_map>() | ||
{ | ||
return linop_map_; | ||
} | ||
|
||
template <> | ||
linopfactory_map& registry::get_map_impl<linopfactory_map>() | ||
{ | ||
return linopfactory_map_; | ||
} | ||
|
||
template <> | ||
criterionfactory_map& registry::get_map_impl<criterionfactory_map>() | ||
{ | ||
return criterionfactory_map_; | ||
} | ||
|
||
template <> | ||
const linop_map& registry::get_map_impl<linop_map>() const | ||
{ | ||
return linop_map_; | ||
} | ||
|
||
template <> | ||
const linopfactory_map& registry::get_map_impl<linopfactory_map>() const | ||
{ | ||
return linopfactory_map_; | ||
} | ||
|
||
template <> | ||
const criterionfactory_map& registry::get_map_impl<criterionfactory_map>() const | ||
{ | ||
return criterionfactory_map_; | ||
} | ||
|
||
|
||
} // namespace config | ||
} // namespace gko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters