![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 175 of file sparse_matrix.h.
#include <sparse_matrix.h>
Public Member Functions | |
| bool | set (RowId row, ColumnId column, double value) |
| double | get (RowId row, ColumnId column) const |
| bool | contains (RowId row, ColumnId column) const |
| void | DeleteRow (RowId row) |
| void | DeleteColumn (ColumnId column) |
| std::vector< ColumnId > | row (RowId row_id) const |
| std::vector< RowId > | column (ColumnId column_id) const |
| std::vector< std::pair< ColumnId, double > > | RowTerms (RowId row_id) const |
| std::vector< std::pair< RowId, double > > | ColumnTerms (ColumnId col_id) const |
| std::vector< std::tuple< RowId, ColumnId, double > > | Terms () const |
| void | Clear () |
| int64_t | nonzeros () const |
| int64_t | impl_detail_matrix_storage_size () const |
| SparseDoubleMatrixProto | Proto () const |
| SparseDoubleMatrixProto | Update (const absl::flat_hash_set< RowId > &deleted_rows, absl::Span< const RowId > new_rows, const absl::flat_hash_set< ColumnId > &deleted_columns, absl::Span< const ColumnId > new_columns, const absl::flat_hash_set< std::pair< RowId, ColumnId > > &dirty) const |
| void operations_research::math_opt::SparseMatrix< RowId, ColumnId >::Clear | ( | ) |
Definition at line 505 of file sparse_matrix.h.
| std::vector< RowId > operations_research::math_opt::SparseMatrix< RowId, ColumnId >::column | ( | ColumnId | column_id | ) | const |
Definition at line 445 of file sparse_matrix.h.
| std::vector< std::pair< RowId, double > > operations_research::math_opt::SparseMatrix< RowId, ColumnId >::ColumnTerms | ( | ColumnId | col_id | ) | const |
Definition at line 477 of file sparse_matrix.h.
| bool operations_research::math_opt::SparseMatrix< RowId, ColumnId >::contains | ( | RowId | row, |
| ColumnId | column ) const |
Definition at line 391 of file sparse_matrix.h.
| void operations_research::math_opt::SparseMatrix< RowId, ColumnId >::DeleteColumn | ( | ColumnId | column | ) |
Definition at line 414 of file sparse_matrix.h.
| void operations_research::math_opt::SparseMatrix< RowId, ColumnId >::DeleteRow | ( | RowId | row | ) |
Definition at line 398 of file sparse_matrix.h.
| double operations_research::math_opt::SparseMatrix< RowId, ColumnId >::get | ( | RowId | row, |
| ColumnId | column ) const |
Definition at line 382 of file sparse_matrix.h.
|
inline |
Definition at line 230 of file sparse_matrix.h.
| int64_t operations_research::math_opt::SparseMatrix< RowId, ColumnId >::nonzeros | ( | ) | const |
Definition at line 512 of file sparse_matrix.h.
| SparseDoubleMatrixProto operations_research::math_opt::SparseMatrix< RowId, ColumnId >::Proto | ( | ) | const |
Definition at line 517 of file sparse_matrix.h.
| std::vector< ColumnId > operations_research::math_opt::SparseMatrix< RowId, ColumnId >::row | ( | RowId | row_id | ) | const |
Definition at line 430 of file sparse_matrix.h.
| std::vector< std::pair< ColumnId, double > > operations_research::math_opt::SparseMatrix< RowId, ColumnId >::RowTerms | ( | RowId | row_id | ) | const |
Definition at line 461 of file sparse_matrix.h.
| bool operations_research::math_opt::SparseMatrix< RowId, ColumnId >::set | ( | RowId | row, |
| ColumnId | column, | ||
| double | value ) |
Definition at line 352 of file sparse_matrix.h.
| std::vector< std::tuple< RowId, ColumnId, double > > operations_research::math_opt::SparseMatrix< RowId, ColumnId >::Terms | ( | ) | const |
Definition at line 493 of file sparse_matrix.h.
| SparseDoubleMatrixProto operations_research::math_opt::SparseMatrix< RowId, ColumnId >::Update | ( | const absl::flat_hash_set< RowId > & | deleted_rows, |
| absl::Span< const RowId > | new_rows, | ||
| const absl::flat_hash_set< ColumnId > & | deleted_columns, | ||
| absl::Span< const ColumnId > | new_columns, | ||
| const absl::flat_hash_set< std::pair< RowId, ColumnId > > & | dirty ) const |
Definition at line 530 of file sparse_matrix.h.