#include <cassert>#include <concepts>#include <cstddef>#include <cstdint>#include <algorithm>#include <initializer_list>#include <iosfwd>#include <limits>#include <ranges>#include <type_traits>#include <utility>#include <ankerl/unordered_dense.h>#include <fe/span.h>#include <fe/vector.h>Go to the source code of this file.
Classes | |
| class | pbqp::Cost |
| A saturating cost; Cost::inf forbids an option or option pair. More... | |
| class | pbqp::BasicMatrix< T > |
| A view of a cost matrix over row-major storage owned elsewhere; transposed() views the same storage column-major. More... | |
| class | pbqp::Matrix |
| An owning row-major cost matrix; it views its own storage, so writes go through span(). More... | |
| class | pbqp::Graph |
| A PBQP problem graph. More... | |
| struct | pbqp::Graph::Ends |
Namespaces | |
| namespace | pbqp |
Typedefs | |
| using | pbqp::MatrixSpan = BasicMatrix<Cost> |
| using | pbqp::MatrixView = BasicMatrix<const Cost> |
Ids | |
Node and edge ids are dense and stable: nothing is ever removed from a Graph. | |
| using | pbqp::NodeId = size_t |
| Identifier of a node in a Graph. | |
| using | pbqp::EdgeId = size_t |
| Identifier of an edge in a Graph. | |
| using | pbqp::OptionId = size_t |
| Index of an option within a node's cost vector. | |
PBQP Vectors & Matrices | |
PBQP vectors and matrices are small, so they live inline; a Matrix views such storage row-major. | |
| using | pbqp::Costs = fe::Vector<Cost, 4> |
| using | pbqp::Edges = fe::Vector<EdgeId, 4> |
| using | pbqp::Choices = fe::Vector<OptionId, 8> |
| One option per node, indexed by node id. | |