CekstvSwitch< Field > Class Template Reference
#include <cekstv.h>
List of all members.
Detailed Description
template<class Field>
class LinBox::CekstvSwitch< Field >
Butterfly switch object from preconditioner paper. This is a switch predicate object that is applied to two references to 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. This class is templatized by the field in which the arithmetic is done.
Constructor & Destructor Documentation
Constructor from a field and a field element.
- Parameters:
-
| F | field in which arithmetic is done |
| switches | vector of switches |
Member Function Documentation
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.
- Returns:
- bool true if swapped, false otherwise
- Parameters:
-
| 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.
- Returns:
- bool true if swapped, false otherwise
- Parameters:
-
| x | reference to first element to be switched |
| y | reference to second element to be switched |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/linbox-1.1.7/linbox/switch/cekstv.h