#include <Vector.hxx>
Inheritance diagram for Seldon::Vector< T, Vect_Full, Allocator >:

Public Types | |
| typedef Allocator::value_type | value_type |
| typedef Allocator::pointer | pointer |
| typedef Allocator::const_pointer | const_pointer |
| typedef Allocator::reference | reference |
| typedef Allocator::const_reference | const_reference |
Public Member Functions | |
| Vector () throw () | |
| Default constructor. | |
| Vector (int i) | |
| Main constructor. | |
| Vector (Vector< T, Vect_Full, Allocator > &A) | |
| Copy constructor. | |
| ~Vector () | |
| Destructor. | |
| void | Clear () |
| Clears the vector. | |
| void | Reallocate (int i) |
| Vector reallocation. | |
| void | SetData (int i, pointer data) |
| void | Nullify () |
| Clears the vector without releasing memory. | |
| reference | operator() (int i) |
| Access operator. | |
| const_reference | operator() (int i) const |
| Access operator. | |
| Vector< T, Vect_Full, Allocator > & | operator= (const Vector< T, Vect_Full, Allocator > &X) |
| Duplicates a vector (assignment operator). | |
| void | Copy (const Vector< T, Vect_Full, Allocator > &X) |
| Duplicates a vector. | |
| int | GetDataSize () |
| Returns the number of elements stored. | |
| void | Zero () |
| Sets all elements to zero. | |
| void | Fill () |
| Fills the vector with 0, 1, 2, ... | |
| template<class T0> | |
| void | Fill (const T0 &x) |
| Fills the vector with a given value. | |
| template<class T0> | |
| Vector< T, Vect_Full, Allocator > & | operator= (const T0 &X) |
| Fills the vector with a given value. | |
| void | FillRand () |
| Fills the vector randomly. | |
| void | Print () const |
| Displays the vector. | |
| value_type | GetNormInf () const |
| Returns the infinite norm. | |
| int | GetNormInfIndex () const |
| Returns the index of the highest absolute value. | |
| void | Write (string FileName) const |
| Writes the vector in a file. | |
| void | Write (ofstream &FileStream) const |
| Writes the vector in a file stream. | |
| void | WriteText (string FileName) const |
| Writes the vector in a file. | |
| void | WriteText (ofstream &FileStream) const |
| Writes the vector in a file stream. | |
| void | Read (string FileName) |
| Sets the vector from a file. | |
| void | Read (ifstream &FileStream) |
| Sets the vector from a file stream. | |
Basic vector class (i.e. not sparse).
|
|||||||||
|
Clears the vector. Destructs the vector.
|
|
||||||||||
|
Duplicates a vector.
|
|
||||||||||||||
|
Fills the vector with a given value.
|
|
|||||||||
|
Fills the vector randomly.
|
|
|||||||||
|
Returns the number of elements stored.
|
|
|||||||||
|
Returns the infinite norm.
|
|
|||||||||
|
Returns the index of the highest absolute value.
|
|
|||||||||
|
Clears the vector without releasing memory. On exit, the vector is empty and the memory has not been released. It is useful for low level manipulations on a Vector instance.
|
|
||||||||||
|
Access operator.
|
|
||||||||||
|
Access operator.
|
|
||||||||||||||
|
Fills the vector with a given value.
|
|
||||||||||
|
Duplicates a vector (assignment operator).
|
|
||||||||||
|
Sets the vector from a file stream. Sets the vector according to a binary file stream that stores the length of the vector (integer) and all elements.
|
|
||||||||||
|
Sets the vector from a file. Sets the vector according to a binary file that stores the length of the vector (integer) and all elements.
|
|
||||||||||
|
Vector reallocation. The vector is resized.
|
|
||||||||||
|
Copy constructor. Builds a copy of a vector.
|
|
||||||||||
|
Main constructor. Builds a vector of a given size.
|
|
|||||||||
|
Default constructor. On exit, the vector is empty. |
|
||||||||||
|
Writes the vector in a file stream. The length of the vector (integer) and all elements of the vector are stored in binary format.
|
|
||||||||||
|
Writes the vector in a file. The length of the vector (integer) and all elements of the vector are stored in binary format.
|
|
||||||||||
|
Writes the vector in a file stream. All elements of the vector are stored in text format. The length is not stored.
|
|
||||||||||
|
Writes the vector in a file. All elements of the vector are stored in text format. The length is not stored.
|
|
|||||||||
|
Sets all elements to zero.
|
1.4.0