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 >.
|
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 |
|
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 |
|
|
| PowerSeq (Base base=Base(), unsigned int power=1, Modulus modulus=(Modulus)(0)) |
| Constructor. More...
|
|
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 |
|
| BridgeSeq (Base base=Base()) |
| Constructor. More...
|
|
Base & | base () |
| Returns the base sequence.
|
|
const Base & | base () const |
|
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.
|
|
|
template<typename > |
class | PowerSeq |
|
template<typename BASE>
class LatBuilder::GenSeq::PowerSeq< BASE >
Sequence filter that raises values (of integers or polynomials) to a given power, optionally modulo a given modulus.
◆ PowerSeq()
Constructor.
- Parameters
-
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. |
The documentation for this class was generated from the following file:
- include/latbuilder/GenSeq/PowerSeq.h