![]() |
CMR
1.3.0
|
#include <matroid.hpp>
Public Types | |
| typedef NameType | name_type |
| typedef size_t | size_type |
| typedef std::vector< name_type > | name_vector_type |
| typedef name_type & | reference_type |
| typedef const name_type & | const_reference_type |
| typedef matroid< name_type > | self_type |
Public Member Functions | |
| matroid (const name_vector_type &names1, const name_vector_type &names2) | |
| matroid (size_t size1=0, size_t size2=0) | |
| void | resize (size_t size1, size_t size2) |
| size_t | size1 () const |
| size_t | size2 () const |
| name_type & | name1 (size_t index) |
| const name_type & | name1 (size_t index) const |
| name_type & | name2 (size_t index) |
| const name_type & | name2 (size_t index) const |
| std::set< NameType > | get_elements () const |
A matroid class which maintains the index-to-element relation. It should mostly be associated with a representation matrix.
| typedef const name_type& tu::matroid< NameType >::const_reference_type |
| typedef NameType tu::matroid< NameType >::name_type |
| typedef std::vector<name_type> tu::matroid< NameType >::name_vector_type |
| typedef name_type& tu::matroid< NameType >::reference_type |
| typedef matroid<name_type> tu::matroid< NameType >::self_type |
| typedef size_t tu::matroid< NameType >::size_type |
|
inline |
Constructs a matroid by copying the matroid elements from the row/column vectors.
| names1 | Row names |
| names2 | Column names |
|
inline |
Constructs a matroid with given height and width. The names are set in default manner.
| size1 | Size of a base |
| size2 | Size of a cobase |
|
inline |
|
inline |
| index | A row index |
|
inline |
| index | A row index |
|
inline |
| index | A column index |
|
inline |
| index | A column index |
|
inline |
Resizes a matroid.
| size1 | New height, i.e. size of each base |
| size2 | New width, i.e. size of each cobase |
|
inline |
|
inline |