linbox
Public Member Functions
ModularBalanced< double > Class Template Reference

Centered representation of $\mathbf{Z}/m\mathbf{Z}$. More...

#include <modular-balanced-double.h>

+ Inheritance diagram for ModularBalanced< double >:

Public Member Functions

bool isMinusOne (const Element &x) const

Detailed Description

template<>
class LinBox::ModularBalanced< double >

Centered representation of $\mathbf{Z}/m\mathbf{Z}$.

If m is the modulus, then elements are represented in

\[ \left \llbracket \left \lceil -\frac{m-1}{2} \right \rceil, \left \lceil \frac{m-1}{2} \right \rceil \right \rrbracket.\]

This representation allows more accumulations before a reduction is necessary, at the cost of a more expensive reduction.


Member Function Documentation

bool isMinusOne ( const Element &  x) const [inline]
Bug:
faux si modulus==2

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