![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 87 of file sparse_vector.h.
#include <sparse_vector.h>
Public Types | |
| typedef IndexType | Index |
| typedef StrictITIVector< Index, Fractional > | DenseVector |
| typedef Permutation< Index > | IndexPermutation |
| using | Iterator = IteratorType |
| using | Entry = typename Iterator::Entry |
Protected Member Functions | |
| void | AddEntry (Index index, Fractional value) |
| void | ResizeDown (EntryIndex new_size) |
| Index | GetIndex (EntryIndex i) const |
| Fractional | GetCoefficient (EntryIndex i) const |
| Index & | MutableIndex (EntryIndex i) |
| Fractional & | MutableCoefficient (EntryIndex i) |
Protected Attributes | |
| std::unique_ptr< char[]> | buffer_ |
| EntryIndex | num_entries_ |
| EntryIndex | capacity_ |
| Index * | index_ = nullptr |
| Fractional * | coefficient_ = nullptr |
| bool | may_contain_duplicates_ |
| typedef StrictITIVector<Index, Fractional> operations_research::glop::SparseVector< IndexType, IteratorType >::DenseVector |
Definition at line 91 of file sparse_vector.h.
| using operations_research::glop::SparseVector< IndexType, IteratorType >::Entry = typename Iterator::Entry |
Definition at line 95 of file sparse_vector.h.
| typedef IndexType operations_research::glop::SparseVector< IndexType, IteratorType >::Index |
Definition at line 89 of file sparse_vector.h.
| typedef Permutation<Index> operations_research::glop::SparseVector< IndexType, IteratorType >::IndexPermutation |
Definition at line 92 of file sparse_vector.h.
| using operations_research::glop::SparseVector< IndexType, IteratorType >::Iterator = IteratorType |
Definition at line 94 of file sparse_vector.h.
| operations_research::glop::SparseVector< IndexType, IteratorType >::SparseVector | ( | ) |
Definition at line 467 of file sparse_vector.h.
| operations_research::glop::SparseVector< IndexType, IteratorType >::SparseVector | ( | const SparseVector< IndexType, IteratorType > & | other | ) |
Definition at line 475 of file sparse_vector.h.
|
default |
|
inlineprotected |
Definition at line 321 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::AddMultipleToDenseVector | ( | Fractional | multiplier, |
| DenseVector * | dense_vector ) const |
Definition at line 828 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::AddMultipleToSparseVectorAndDeleteCommonIndex | ( | Fractional | multiplier, |
| Index | removed_common_index, | ||
| Fractional | drop_tolerance, | ||
| SparseVector< IndexType, IteratorType > * | accumulator_vector ) const |
Definition at line 838 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::AddMultipleToSparseVectorAndIgnoreCommonIndex | ( | Fractional | multiplier, |
| Index | removed_common_index, | ||
| Fractional | drop_tolerance, | ||
| SparseVector< IndexType, IteratorType > * | accumulator_vector ) const |
Definition at line 847 of file sparse_vector.h.
|
inline |
Definition at line 306 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::AppendEntriesWithOffset | ( | const SparseVector< IndexType, IteratorType > & | sparse_vector, |
| Index | offset ) |
Definition at line 639 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::ApplyIndexPermutation | ( | const IndexPermutation & | index_perm | ) |
Definition at line 946 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::ApplyPartialIndexPermutation | ( | const IndexPermutation & | index_perm | ) |
Definition at line 954 of file sparse_vector.h.
| IteratorType operations_research::glop::SparseVector< IndexType, IteratorType >::begin | ( | ) | const |
Definition at line 452 of file sparse_vector.h.
| bool operations_research::glop::SparseVector< IndexType, IteratorType >::CheckNoDuplicates | ( | ) | const |
Definition at line 682 of file sparse_vector.h.
| bool operations_research::glop::SparseVector< IndexType, IteratorType >::CheckNoDuplicates | ( | StrictITIVector< Index, bool > * | boolean_vector | ) | const |
Definition at line 650 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::CleanUp | ( | ) |
Definition at line 552 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::Clear | ( | ) |
Definition at line 487 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::ClearAndRelease | ( | ) |
Definition at line 493 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::ComponentWiseDivide | ( | const DenseVector & | factors | ) |
Definition at line 799 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::ComponentWiseMultiply | ( | const DenseVector & | factors | ) |
Definition at line 783 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::CopyToDenseVector | ( | Index | num_indices, |
| DenseVector * | dense_vector ) const |
Definition at line 807 of file sparse_vector.h.
| std::string operations_research::glop::SparseVector< IndexType, IteratorType >::DebugString | ( | ) | const |
Definition at line 1027 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::DeleteEntry | ( | Index | index | ) |
Definition at line 700 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::DivideByConstant | ( | Fractional | factor | ) |
Definition at line 791 of file sparse_vector.h.
| IteratorType operations_research::glop::SparseVector< IndexType, IteratorType >::end | ( | ) | const |
Definition at line 457 of file sparse_vector.h.
|
inlineprotected |
Definition at line 353 of file sparse_vector.h.
|
inline |
Definition at line 287 of file sparse_vector.h.
|
inline |
Definition at line 283 of file sparse_vector.h.
|
inlineprotected |
Definition at line 348 of file sparse_vector.h.
|
inline |
Definition at line 297 of file sparse_vector.h.
|
inline |
Definition at line 293 of file sparse_vector.h.
| bool operations_research::glop::SparseVector< IndexType, IteratorType >::IsCleanedUp | ( | ) | const |
Definition at line 588 of file sparse_vector.h.
| bool operations_research::glop::SparseVector< IndexType, IteratorType >::IsEmpty | ( | ) | const |
Definition at line 537 of file sparse_vector.h.
| bool operations_research::glop::SparseVector< IndexType, IteratorType >::IsEqualTo | ( | const SparseVector< IndexType, IteratorType > & | other | ) | const |
Definition at line 1015 of file sparse_vector.h.
| Fractional operations_research::glop::SparseVector< IndexType, IteratorType >::LookUpCoefficient | ( | Index | index | ) | const |
Definition at line 999 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::MoveEntryToFirstPosition | ( | Index | index | ) |
Definition at line 748 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::MoveEntryToLastPosition | ( | Index | index | ) |
Definition at line 761 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::MoveTaggedEntriesTo | ( | const IndexPermutation & | index_perm, |
| SparseVector< IndexType, IteratorType > * | output ) |
Definition at line 969 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::MultiplyByConstant | ( | Fractional | factor | ) |
Definition at line 775 of file sparse_vector.h.
|
inlineprotected |
Definition at line 366 of file sparse_vector.h.
|
inlineprotected |
Definition at line 361 of file sparse_vector.h.
|
inline |
Definition at line 274 of file sparse_vector.h.
| SparseVector< IndexType, IteratorType > & operations_research::glop::SparseVector< IndexType, IteratorType >::operator= | ( | const SparseVector< IndexType, IteratorType > & | other | ) |
Definition at line 481 of file sparse_vector.h.
|
default |
| void operations_research::glop::SparseVector< IndexType, IteratorType >::PermutedCopyToDenseVector | ( | const IndexPermutation & | index_perm, |
| Index | num_indices, | ||
| DenseVector * | dense_vector ) const |
Definition at line 817 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::PopulateFromDenseVector | ( | const DenseVector & | dense_vector | ) |
Definition at line 626 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::PopulateFromSparseVector | ( | const SparseVector< IndexType, IteratorType > & | sparse_vector | ) |
Definition at line 600 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::RemoveNearZeroEntries | ( | Fractional | threshold | ) |
Definition at line 717 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::RemoveNearZeroEntriesWithWeights | ( | Fractional | threshold, |
| const DenseVector & | weights ) |
Definition at line 733 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::Reserve | ( | EntryIndex | new_capacity | ) |
Definition at line 503 of file sparse_vector.h.
|
inlineprotected |
Definition at line 340 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::SetCoefficient | ( | Index | index, |
| Fractional | value ) |
Definition at line 693 of file sparse_vector.h.
| void operations_research::glop::SparseVector< IndexType, IteratorType >::Swap | ( | SparseVector< IndexType, IteratorType > * | other | ) |
Definition at line 542 of file sparse_vector.h.
|
protected |
Definition at line 383 of file sparse_vector.h.
|
protected |
Definition at line 385 of file sparse_vector.h.
|
protected |
Definition at line 389 of file sparse_vector.h.
|
protected |
Definition at line 388 of file sparse_vector.h.
|
mutableprotected |
Definition at line 393 of file sparse_vector.h.
|
protected |
Definition at line 384 of file sparse_vector.h.