PriorityQueue.hpp
44 static auto withInitialPrioritiesAndOrder(Deque<Index> const& priorities, Deque<Index> const& order) -> PriorityQueue;
Definition: PriorityQueue.hpp:27
auto order() const -> Deque< Index > const &
Return the current order of the tracked entities in the queue.
static auto withInitialPriorities(Deque< Index > const &priorities) -> PriorityQueue
Return a PriorityQueue instance with given initial priorities.
auto extend() -> void
Extend the queue with the introduction of a new tracked entity.
static auto withInitialOrder(Deque< Index > const &order) -> PriorityQueue
Return a PriorityQueue instance with an initial order and zero priorities.
auto increment(Index identity) -> void
Increment the priority of a tracked entity.
auto priorities() const -> Deque< Index > const &
Return the current priorities of each tracked entity in the queue.
static auto withInitialPrioritiesAndOrder(Deque< Index > const &priorities, Deque< Index > const &order) -> PriorityQueue
Return a PriorityQueue instance with given initial priorities and order.
static auto withInitialSize(Index size) -> PriorityQueue
Return a PriorityQueue instance with given initial size.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto identity(Index rows, Index cols) -> decltype(MatrixXd::Identity(rows, cols))
Return an expression of an identity matrix.
Definition: Matrix.hpp:576