#include <cekstv.h>
Public Types | |
typedef Field::Element | Element |
Typedef. | |
Public Member Functions | |
CekstvSwitch (const typename Field::Element &a) | |
~CekstvSwitch () | |
bool | apply (const Field &F, Element &x, Element &y) const |
bool | applyTranspose (const Field &F, Element &x, Element &y) const |
CekstvSwitch | ( | const typename Field::Element & | a | ) | [inline] |
Constructor from a field and a field element.
F | field in which arithmetic is done | |
switches | vector of switches |
~CekstvSwitch | ( | ) | [inline] |
Destructor.
Apply switch function. Switches the elements in references according to the exchange matrix introduced in "Efficient Matrix Preconditioners for Black Box Linear Algebra" by Chen, Eberly, Kaltofen, Saunders, Turner, and Villard and the current field element specified in the switch object.
x | reference to first element to be switched | |
y | reference to second element to be switched |
Apply switch transpose function. Switches the elements in references according to the transpose of the exchange matrix introduced in "Efficient Matrix Preconditioners for Black Box Linear Algebra" by Chen, Eberly, Kaltofen, Saunders, Turner, and Villard and the current field element specified in the switch object.
x | reference to first element to be switched | |
y | reference to second element to be switched |