Givaro 4.2.1
GeneralRingNonZeroRandIter< Ring, RandIter > Class Template Reference

Random iterator for nonzero random numbers. More...

#include <givranditer.h>

Public Types

typedef Ring::Element Element
 
typedef RandIter::Residu_t Residu_t
 

Public Member Functions

 GeneralRingNonZeroRandIter (RandIter &r)
 
 GeneralRingNonZeroRandIter (const GeneralRingNonZeroRandIter &R)
 
 ~GeneralRingNonZeroRandIter ()
 
Elementoperator() (Element &a) const
 
Elementrandom (Element &a) const
 
Element operator() ()
 
Element random () const
 
const Ring & ring () const
 

Detailed Description

template<class Ring, class RandIter = typename Ring::RandIter>
class Givaro::GeneralRingNonZeroRandIter< Ring, RandIter >

Random iterator for nonzero random numbers.

Wraps around an existing random iterator and ensures that the output is entirely nonzero numbers. Imported from FFLAS-FFPACK NonzeroRandIter - AB 2015-01-12

Member Typedef Documentation

◆ Element

template<class Ring, class RandIter = typename Ring::RandIter>
typedef Ring::Element Element

◆ Residu_t

template<class Ring, class RandIter = typename Ring::RandIter>
typedef RandIter::Residu_t Residu_t

Constructor & Destructor Documentation

◆ GeneralRingNonZeroRandIter() [1/2]

template<class Ring, class RandIter = typename Ring::RandIter>
GeneralRingNonZeroRandIter ( RandIter & r)
inline

◆ GeneralRingNonZeroRandIter() [2/2]

template<class Ring, class RandIter = typename Ring::RandIter>
GeneralRingNonZeroRandIter ( const GeneralRingNonZeroRandIter< Ring, RandIter > & R)
inline

◆ ~GeneralRingNonZeroRandIter()

template<class Ring, class RandIter = typename Ring::RandIter>
~GeneralRingNonZeroRandIter ( )
inline

Member Function Documentation

◆ operator()() [1/2]

template<class Ring, class RandIter = typename Ring::RandIter>
Element & operator() ( Element & a) const
inline

◆ random() [1/2]

template<class Ring, class RandIter = typename Ring::RandIter>
Element & random ( Element & a) const
inline

◆ operator()() [2/2]

template<class Ring, class RandIter = typename Ring::RandIter>
Element operator() ( )
inline

◆ random() [2/2]

template<class Ring, class RandIter = typename Ring::RandIter>
Element random ( ) const
inline

◆ ring()

template<class Ring, class RandIter = typename Ring::RandIter>
const Ring & ring ( ) const
inline

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