![]() |
OR-Tools
9.6
|
Definition at line 175 of file 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 Clear |
Definition at line 497 of file sparse_matrix.h.
| std::vector< RowId > column | ( | ColumnId | column_id | ) | const |
Definition at line 437 of file sparse_matrix.h.
| std::vector< std::pair< RowId, double > > ColumnTerms | ( | ColumnId | col_id | ) | const |
Definition at line 469 of file sparse_matrix.h.
| bool contains | ( | RowId | row, |
| ColumnId | column | ||
| ) | const |
Definition at line 383 of file sparse_matrix.h.
| void DeleteColumn | ( | ColumnId | column | ) |
Definition at line 406 of file sparse_matrix.h.
| void DeleteRow | ( | RowId | row | ) |
Definition at line 390 of file sparse_matrix.h.
| double get | ( | RowId | row, |
| ColumnId | column | ||
| ) | const |
Definition at line 374 of file sparse_matrix.h.
|
inline |
Definition at line 230 of file sparse_matrix.h.
| int64_t nonzeros |
Definition at line 504 of file sparse_matrix.h.
| SparseDoubleMatrixProto Proto |
Definition at line 509 of file sparse_matrix.h.
| std::vector< ColumnId > row | ( | RowId | row_id | ) | const |
Definition at line 422 of file sparse_matrix.h.
| std::vector< std::pair< ColumnId, double > > RowTerms | ( | RowId | row_id | ) | const |
Definition at line 453 of file sparse_matrix.h.
| bool set | ( | RowId | row, |
| ColumnId | column, | ||
| double | value | ||
| ) |
Definition at line 344 of file sparse_matrix.h.
| std::vector< std::tuple< RowId, ColumnId, double > > Terms |
Definition at line 485 of file sparse_matrix.h.
| 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 |
Definition at line 522 of file sparse_matrix.h.