-
Notifications
You must be signed in to change notification settings - Fork 4
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
18 changed files
with
575 additions
and
133 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
196 changes: 90 additions & 106 deletions
196
source/framework/algorithm/include/lue/framework/algorithm/definition/highest_n.hpp
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
80 changes: 80 additions & 0 deletions
80
source/framework/python/src/algorithm/routing_operation/decreasing_order.cpp
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,80 @@ | ||
#include "lue/framework/algorithm/value_policies/decreasing_order.hpp" | ||
#include <pybind11/pybind11.h> | ||
|
||
|
||
namespace lue::framework { | ||
|
||
namespace detail { | ||
|
||
template<typename ValueElement> | ||
void bind_decreasing_order(pybind11::module& module) | ||
{ | ||
module.def("decreasing_order", lue::value_policies::decreasing_order<ValueElement, 2>); | ||
} | ||
|
||
|
||
template<typename ZoneElement, typename ValueElement> | ||
void bind_decreasing_order(pybind11::module& module) | ||
{ | ||
module.def( | ||
"decreasing_order", lue::value_policies::decreasing_order<ZoneElement, ValueElement, 2>); | ||
} | ||
|
||
} // namespace detail | ||
|
||
void bind_decreasing_order(pybind11::module& module) | ||
{ | ||
// Global | ||
detail::bind_decreasing_order<std::uint8_t>(module); | ||
detail::bind_decreasing_order<std::int32_t>(module); | ||
detail::bind_decreasing_order<std::int64_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t>(module); | ||
detail::bind_decreasing_order<float>(module); | ||
detail::bind_decreasing_order<double>(module); | ||
|
||
// Zonal | ||
detail::bind_decreasing_order<std::uint8_t, std::uint8_t>(module); | ||
detail::bind_decreasing_order<std::int32_t, std::uint8_t>(module); | ||
detail::bind_decreasing_order<std::int64_t, std::uint8_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t, std::uint8_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t, std::uint8_t>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, std::int32_t>(module); | ||
detail::bind_decreasing_order<std::int32_t, std::int32_t>(module); | ||
detail::bind_decreasing_order<std::int64_t, std::int32_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t, std::int32_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t, std::int32_t>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, std::int64_t>(module); | ||
detail::bind_decreasing_order<std::int32_t, std::int64_t>(module); | ||
detail::bind_decreasing_order<std::int64_t, std::int64_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t, std::int64_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t, std::int64_t>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, std::uint32_t>(module); | ||
detail::bind_decreasing_order<std::int32_t, std::uint32_t>(module); | ||
detail::bind_decreasing_order<std::int64_t, std::uint32_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t, std::uint32_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t, std::uint32_t>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, std::uint64_t>(module); | ||
detail::bind_decreasing_order<std::int32_t, std::uint64_t>(module); | ||
detail::bind_decreasing_order<std::int64_t, std::uint64_t>(module); | ||
detail::bind_decreasing_order<std::uint32_t, std::uint64_t>(module); | ||
detail::bind_decreasing_order<std::uint64_t, std::uint64_t>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, float>(module); | ||
detail::bind_decreasing_order<std::int32_t, float>(module); | ||
detail::bind_decreasing_order<std::int64_t, float>(module); | ||
detail::bind_decreasing_order<std::uint32_t, float>(module); | ||
detail::bind_decreasing_order<std::uint64_t, float>(module); | ||
|
||
detail::bind_decreasing_order<std::uint8_t, double>(module); | ||
detail::bind_decreasing_order<std::int32_t, double>(module); | ||
detail::bind_decreasing_order<std::int64_t, double>(module); | ||
detail::bind_decreasing_order<std::uint32_t, double>(module); | ||
detail::bind_decreasing_order<std::uint64_t, double>(module); | ||
} | ||
|
||
} // namespace lue::framework |
Oops, something went wrong.