Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

FieldAXPY< NTL_ZZ > Class Template Reference

#include <ntl-ZZ.h>

template<>
class LinBox::FieldAXPY< NTL_ZZ >


Public Types

typedef NTL_ZZ Field
typedef Field::Element Element

Public Member Functions

 FieldAXPY (const Field &F)
 FieldAXPY (const FieldAXPY< Field > &faxpy)
FieldAXPY< Field > & operator= (const FieldAXPY &faxpy)
template<class Element1> Elementmulacc (const Element &a, const Element1 &x)
Elementaccumulate (const Element &t)
template<class Element1> Elementmulacc (const Element1 &a, const Element &x)
Elementmulacc (const Element &a, const Element &b)
Elementget (Element &y)
FieldAXPYassign (const Element &y)
void reset ()

Member Typedef Documentation

typedef NTL_ZZ Field
 

typedef Field::Element Element
 


Member Function Documentation

FieldAXPY const Field F  )  [inline]
 

Constructor. A faxpy object if constructed from a Field and a field element. Copies of this objects are stored in the faxpy object.

Parameters:
F field F in which arithmetic is done

FieldAXPY const FieldAXPY< Field > &  faxpy  )  [inline]
 

Copy constructor.

Parameters:
faxpy 

FieldAXPY<Field>& operator= const FieldAXPY< NTL_ZZ > &  faxpy  )  [inline]
 

Assignment operator

Parameters:
faxpy 

Element& mulacc const Element a,
const Element1 &  x
[inline]
 

Add a*x to y y += a*x.

Parameters:
a constant reference to element a
x constant reference to element x allow optimal multiplication, such as integer * int

Element& accumulate const Element t  )  [inline]
 

Element& mulacc const Element1 &  a,
const Element x
[inline]
 

Add a*x to y y += a*x.

Parameters:
a constant reference to element a
x constant reference to element x allow optimal multiplication, such as integer * int

Element& mulacc const Element a,
const Element b
[inline]
 

Element& get Element y  )  [inline]
 

Retrieve y

Performs the delayed modding out if necessary

FieldAXPY& assign const Element y  )  [inline]
 

Assign method. Stores new field element for arithmetic.

Returns:
reference to self
Parameters:
y_init constant reference to element a

void reset  )  [inline]
 


Generated on Fri Jul 8 10:29:53 2005 for linbox by doxygen 1.3.7