Givaro
Public Types | Public Member Functions
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

typedef Ring::Element Element

◆ Residu_t

typedef RandIter::Residu_t Residu_t

Constructor & Destructor Documentation

◆ GeneralRingNonZeroRandIter() [1/2]

GeneralRingNonZeroRandIter ( RandIter &  r)
inline

◆ GeneralRingNonZeroRandIter() [2/2]

GeneralRingNonZeroRandIter ( const GeneralRingNonZeroRandIter< Ring, RandIter > &  R)
inline

◆ ~GeneralRingNonZeroRandIter()

Member Function Documentation

◆ operator()() [1/2]

Element& operator() ( Element a) const
inline

◆ random() [1/2]

Element& random ( Element a) const
inline

◆ operator()() [2/2]

Element operator() ( )
inline

◆ random() [2/2]

Element random ( ) const
inline

◆ ring()

const Ring& ring ( ) const
inline

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