template<class Field>
class LinBox::CekstvSwitch< Field >
The default butterfly switch object.
This is a predicate object that is applied to two elements to switch them as needed by the Butterfly\ Switching\ Network\ BlackBox\ Matrix\ Object following the exchange matrix introduced in "Efficient Matrix
Preconditioners for Black Box Linear Algebra" by Chen, Eberly, Kaltofen, Saunders, Turner, and Villard.
bool applyTranspose |
( |
const Field & |
F, |
|
|
typename Field::Element & |
x, |
|
|
typename Field::Element & |
y |
|
) |
| const |
|
inline |
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.
- Returns
- bool true if swapped, false otherwise
- Parameters
-
F | |
x | reference to first element to be switched |
y | reference to second element to be switched |