![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 88 of file sparse_vector_view.h.
#include <sparse_vector_view.h>
Classes | |
| class | const_iterator |
Public Types | |
| using | value_type = std::pair<int64_t, T> |
Public Member Functions | |
| SparseVectorView (absl::Span< const int64_t > ids, absl::Span< const T > values) | |
| SparseVectorView ()=default | |
| const_iterator | begin () const |
| const_iterator | end () const |
| absl::Span< const int64_t > | ids () const |
| int64_t | ids (int index) const |
| int | ids_size () const |
| absl::Span< const T > | values () const |
| int | values_size () const |
| const T & | values (int index) const |
| template<typename KeyType, typename Storage> | |
| absl::flat_hash_map< KeyType, T > | as_map (const Storage *storage) |
| using operations_research::math_opt::SparseVectorView< T >::value_type = std::pair<int64_t, T> |
Definition at line 90 of file sparse_vector_view.h.
|
inline |
Definition at line 117 of file sparse_vector_view.h.
|
default |
| absl::flat_hash_map< KeyType, T > operations_research::math_opt::SparseVectorView< T >::as_map | ( | const Storage * | storage | ) |
Definition at line 243 of file sparse_vector_view.h.
|
inline |
Definition at line 229 of file sparse_vector_view.h.
|
inline |
Definition at line 236 of file sparse_vector_view.h.
|
inline |
Definition at line 124 of file sparse_vector_view.h.
|
inline |
Definition at line 125 of file sparse_vector_view.h.
|
inline |
Definition at line 126 of file sparse_vector_view.h.
|
inline |
Definition at line 127 of file sparse_vector_view.h.
|
inline |
Definition at line 129 of file sparse_vector_view.h.
|
inline |
Definition at line 128 of file sparse_vector_view.h.