#include <numvect.h>
Public Types | |
typedef vector< T >::iterator | iterator |
Public Member Functions | |
NumVect () | |
NumVect (const NumVect &v) | |
NumVect (const vector< T > &v) | |
NumVect (int size) | |
NumVect (int size, const T &t) | |
void | operator= (const NumVect &v) |
void | swap (NumVect &v) |
const iterator | begin () |
iterator | end () |
int | size () const |
bool | empty () const |
void | resize (int size) |
void | resize (int size, const T &t) |
void | gen_zero (int size) |
bool | operator== (NumVect< T > &other) |
void | push_back (const T &t) |
void | pop_back () |
T & | front () |
const T & | front () const |
T & | back () |
const T & | back () const |
void | extend (int maxSize) |
void | clear () |
T & | operator[] (int i) |
const T & | operator[] (int i) const |
void | add (const NumVect< T > &v, int n) |
void | add (const NumVect< T > &v) |
void | sub (const NumVect< T > &v, int n) |
void | sub (const NumVect< T > &v) |
void | mul (const NumVect< T > &v, int b, int n, T c) |
void | mul (const NumVect< T > &v, int n, T c) |
void | mul (const NumVect< T > &v, T c) |
void | div (const NumVect< T > &v, int b, int n, T c) |
void | div (const NumVect< T > &v, int n, T c) |
void | div (const NumVect< T > &v, T c) |
void | addmul (const NumVect< T > &v, T x, int beg, int n) |
void | addmul (const NumVect< T > &v, T x, int n) |
void | addmul (const NumVect< T > &v, T x) |
void | addmul_2exp (const NumVect< T > &v, const T &x, long expo, T &tmp) |
void | addmul_2exp (const NumVect< T > &v, const T &x, long expo, int n, T &tmp) |
void | addmul_si (const NumVect< T > &v, long x) |
void | addmul_si (const NumVect< T > &v, long x, int n) |
void | addmul_si_2exp (const NumVect< T > &v, long x, long expo, T &tmp) |
void | addmul_si_2exp (const NumVect< T > &v, long x, long expo, int n, T &tmp) |
void | rotate_left (int first, int last) |
void | rotate_right (int first, int last) |
long | get_max_exponent () |
void | fill (long value) |
bool | is_zero (int fromCol=0) const |
int | size_nz () const |
Friends | |
ostream & | operator (ostream &os, const NumVect< T > &v) |
istream & | operator>> (istream &is, NumVect< T > &v) |
Member Typedef Documentation
◆ iterator
typedef vector<T>::iterator NumVect< T >::iterator |
Constructor & Destructor Documentation
◆ NumVect() [1/5]
◆ NumVect() [2/5]
◆ NumVect() [3/5]
Initializes NumVect with the elements of a given vector.
◆ NumVect() [4/5]
Initializes NumVect of specific size, The initial content is undefined.
◆ NumVect() [5/5]
Member Function Documentation
◆ add() [1/2]
Addition of two NumVector objects.
◆ add() [2/2]
Addition of two NumVector objects, till index n.
◆ addmul() [1/3]
Incremeanting each coefficient of NumVector by its product with number c.
◆ addmul() [2/3]
Incremeanting each coefficient of NumVector by its product with number c, from beg to index n - 1.
◆ addmul() [3/3]
Incremeanting each coefficient of NumVector by its product with number c, till index n.
◆ addmul_2exp() [1/2]
void NumVect< T >::addmul_2exp | ( | const NumVect< T > & | v, |
const T & | x, | ||
long | expo, | ||
int | n, | ||
T & | tmp | ||
) |
◆ addmul_2exp() [2/2]
|
inline |
◆ addmul_si() [1/2]
◆ addmul_si() [2/2]
◆ addmul_si_2exp() [1/2]
void NumVect< T >::addmul_si_2exp | ( | const NumVect< T > & | v, |
long | x, | ||
long | expo, | ||
int | n, | ||
T & | tmp | ||
) |
◆ addmul_si_2exp() [2/2]
|
inline |
◆ back() [1/2]
|
inline |
Returns a reference to the back element of NumVect.
◆ back() [2/2]
|
inline |
Returns a const reference to the back element of NumVect, on constant object.
◆ begin()
Returns an iterator to the beginning of NumVect.
◆ clear()
|
inline |
◆ div() [1/3]
Division of NumVector and a number c, from index b till index n.
◆ div() [2/3]
Division of NumVector and a number c, till index n.
◆ div() [3/3]
Division of NumVector and a number c.
◆ empty()
◆ end()
◆ extend()
|
inline |
Extends the size of NumVect, only if it is needed.
◆ fill()
◆ front() [1/2]
|
inline |
Returns a reference to the front element of NumVect.
◆ front() [2/2]
|
inline |
Returns a const reference to the front element of NumVect, on constant object.
◆ gen_zero()
|
inline |
Sets the size of NumVect and all its elements to zero.
◆ get_max_exponent()
long NumVect< T >::get_max_exponent |
Returns expo >= 0 such that all elements are < 2^expo.
◆ is_zero()
bool NumVect< T >::is_zero | ( | int | fromCol = 0 | ) | const |
Checks if NumVect has zero elements from fromCol.
◆ mul() [1/3]
Multiplication of NumVector and a number c, from index b till index n.
◆ mul() [2/3]
Multiplication of NumVector and a number c, till index n.
◆ mul() [3/3]
Multiplication of NumVector and a number c.
◆ operator=()
|
inline |
◆ operator==()
|
inline |
Compares two NumVects by comparing the underlying vectors. Returns true if equivalent & false otherwise. Note that this only works if the two NumVects have the same template type parameter.
◆ operator[]() [1/2]
|
inline |
Returns a reference to the i-th element of NumVect.
◆ operator[]() [2/2]
|
inline |
Returns a const reference to the i-th element of NumVect on constant object.
◆ pop_back()
◆ push_back()
|
inline |
Inserts an element in the back of NumVect.
◆ resize() [1/2]
◆ resize() [2/2]
|
inline |
Sets the size of NumVect and all its elemnts to t.
◆ rotate_left()
|
inline |
(v[first],...,v[last]) becomes (v[first+1],...,v[last],v[first])
◆ rotate_right()
|
inline |
(v[first],...,v[last]) becomes (v[last],v[first],...,v[last-1])
◆ size()
|
inline |
Returns the number of elements in NumVect.
◆ size_nz()
int NumVect< T >::size_nz |
Returns last non-zero index of NumVector.
◆ sub() [1/2]
Subtraction of two NumVector objects.
◆ sub() [2/2]
Subtraction of two NumVector objects, till index n.
◆ swap()
Friends And Related Function Documentation
◆ operator
|
friend |
◆ operator>>
Reads a NumVect from stream is.
The documentation for this class was generated from the following file:
- fplll/nr/numvect.h