Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CekstvSwitch 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 \Ref{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.


Public Types

typedef Field::Element Element
 Typedef.

typedef CekstvSwitchFactory<
Field
Factory

Public Methods

 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


Member Typedef Documentation

typedef Field::Element Element
 

Typedef.

typedef CekstvSwitchFactory<Field> Factory
 


Constructor & Destructor Documentation

CekstvSwitch const typename Field::Element   a [inline]
 

Constructor from a field and a field element.

Parameters:
F  field in which arithmetic is done
switches  vector of switches

~CekstvSwitch   [inline]
 

Destructor.


Member Function Documentation

bool apply const Field   F,
Element   x,
Element   y
const
 

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

bool applyTranspose const Field   F,
Element   x,
Element   y
const
 

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


Generated on Mon Jun 20 09:16:51 2005 for linbox by doxygen1.2.18