LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
|
Sequence filter that raises values (of integers or polynomials) to a given power, optionally modulo a given modulus. More...
#include <PowerSeq.h>
Inherits LatBuilder::BridgeSeq< PowerSeq< BASE >, BASE, BASE::value_type, BridgeIteratorCached >.
Classes | |
struct | RebindTraversal |
Rebinds the traversal type. More... |
Public Types | |
typedef self_type::Base | Base |
typedef self_type::value_type | value_type |
typedef Base::Modulus | Modulus |
typedef self_type::size_type | size_type |
typedef BASE::Traversal | Traversal |
Public Types inherited from LatBuilder::BridgeSeq< PowerSeq< BASE >, BASE, BASE::value_type, BridgeIteratorCached > | |
typedef BridgeSeq< PowerSeq< BASE >, BASE, BASE::value_type, BridgeIteratorCached > | BridgeSeq_ |
typedef BASE | Base |
typedef BASE::value_type | value_type |
typedef Base::size_type | size_type |
typedef BridgeIteratorCached< PowerSeq< BASE > > | const_iterator |
Public Member Functions | |
PowerSeq (Base base=Base(), unsigned int power=1, Modulus modulus=(Modulus)(0)) | |
Constructor. | |
template<typename BASE2> | |
PowerSeq (const PowerSeq< BASE2 > &other, typename Base::Traversal trav=typename Base::Traversal()) | |
Cross-traversal copy-constructor. | |
template<class TRAV2> | |
RebindTraversal< TRAV2 >::Type | rebind (TRAV2 trav) const |
Returns a copy of this object, but using a different traversal policy. | |
value_type | element (const typename Base::const_iterator &it) const |
Computes and returns the output value of the filters for the basic merit value pointed to by it . | |
size_type | size () const |
Returns the size of the underlying sequence. | |
void | resize (size_type size) |
Calls resize() on the base sequence. | |
Modulus | modulus () const |
unsigned int | power () const |
Public Member Functions inherited from LatBuilder::BridgeSeq< PowerSeq< BASE >, BASE, BASE::value_type, BridgeIteratorCached > | |
BridgeSeq (Base base=Base()) | |
Constructor. | |
Base & | base () |
Returns the base sequence. | |
void | setBase (Base b) |
Changes the base sequence to b . | |
const_iterator | begin () const |
Returns an iterator pointing to the first element in the sequence. | |
const_iterator | end () const |
Returns an iterator pointing past the last element in the sequence. |
Sequence filter that raises values (of integers or polynomials) to a given power, optionally modulo a given modulus.
|
inline |
Constructor.
base | Base sequence. |
power | Power to which the elements of the sequence will be raised. |
modulus | If nonzero, integer against which to apply the modulo. |