linbox
Public Member Functions | Protected Attributes
Modular< uint8_t > Class Template Reference

Allows compact storage when the modulus is less than 2^8. More...

#include <modular.h>

Inheritance diagram for Modular< uint8_t >:

Public Member Functions

Element & add (Element &x, const Element &y, const Element &z) const
 add elements
Element & subin (Element &x, const Element &y) const
 subin.

Protected Attributes

Element _modulus
 Private (non-static) element for modulus.

Detailed Description

template<>
class LinBox::Modular< uint8_t >

Allows compact storage when the modulus is less than 2^8.

Requires 1 < modulus < 2^8, normally prime. See FieldArchetype for member specifications.


Member Function Documentation

Element& add ( Element &  x,
const Element &  y,
const Element &  z 
) const [inline]

add elements

Todo:
is it faster to use uint32 and multiple casts ?
Element& subin ( Element &  x,
const Element &  y 
) const [inline]

subin.

Todo:
why long here ?

The documentation for this class was generated from the following file: