|
cgv
|
#include <perm_mat.h>
Public Member Functions | |
| perm_mat () | |
| standard constructor | |
| perm_mat (unsigned n) | |
| create an nxn identity permutation matrix (storage is only n) | |
| perm_mat (vec< unsigned > p) | |
| creates a permutation from a given permutation vector | |
| unsigned | size () const |
| number of stored elements | |
| unsigned | nrows () const |
| number of rows | |
| unsigned | ncols () const |
| number of rows | |
| void | resize (unsigned n) |
| resize the permutation matrix | |
| void | transpose () |
| compute the transpose permutation matrix (equal to inverse permutation) | |
| perm_mat | operator* (const perm_mat &m) |
| product with another permutation matrix | |
| void | identity () |
| set to identity matrix | |
Public Attributes | |
| vec< unsigned > | _data |
| internal storage of the permutation | |
a permutation matrix type