#include <permutation.h>
Inheritance diagram for Permutation:

| Storage | \Ref{LinBox} dense or sparse vector of field elements |
Public Types | |
| typedef _Field | Field |
| typedef Field::Element | Element |
Public Methods | |
| Permutation (Storage &indices, const Field &F=Field()) | |
| Permutation (int n, const Field &F=Field()) | |
| Permutation (const Permutation &M) | |
| ~Permutation (void) | |
| template<class OutVector, class InVector> OutVector & | apply (OutVector &y, const InVector &x) const |
| y \leftarrow Px#. | |
| template<class OutVector, class InVector> OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
| y^T \leftarrow x^T P#. | |
| size_t | rowdim (void) const |
| size_t | coldim (void) const |
| void | permute (size_t row1, size_t row2) |
| const Field & | field () |
|
|
|
|
|
|
|
||||||||||||
|
Constructor from a vector of indices This constructor creates a permutation matrix based on a vector of indices
|
|
||||||||||||
|
Constructor from a dimension This constructor creates an n x n permutation matrix, initialized to be the identity
|
|
|
|
|
|
|
|
||||||||||||
|
y \leftarrow Px#.
|
|
||||||||||||
|
y^T \leftarrow x^T P#.
|
|
|
|
|
|
|
|
||||||||||||
|
Add a transposition to the matrix |
|
|
|
1.2.18