|
| FullVector () |
|
| FullVector (const FullVector &vect) |
|
| FullVector (Index n) |
|
| FullVector (T *ptr, Index n) |
|
| FullVector (T *ptr, Index n, Index nmax) |
|
| ~FullVector () override |
|
T * | ptr () |
|
const T * | ptr () const |
|
void | setptr (T *p) |
|
Index | capacity () const |
|
Iterator | begin () |
|
Iterator | end () |
|
ConstIterator | begin () const |
|
ConstIterator | end () const |
|
void | fastResize (Index dim) |
|
void | resize (Index dim) override |
| Resize the vector, and reset all values to 0. More...
|
|
void | clear () override |
| Reset all values to 0. More...
|
|
void | swap (FullVector< T > &v) |
|
void | clear (Index dim) override |
| Reset the value of element i to 0. More...
|
|
T & | operator[] (Index i) |
|
const T & | operator[] (Index i) const |
|
SReal | element (Index i) const override |
| Read the value of element i. More...
|
|
void | set (Index i, SReal v) override |
| Write the value of element i. More...
|
|
void | add (Index i, SReal v) override |
| Add v to the existing value of element i. More...
|
|
Index | size () const override |
| Number of elements. More...
|
|
FullVector< T > | sub (Index i, Index n) |
|
template<class TV > |
void | getsub (Index i, Index n, TV &v) |
|
template<class TV > |
void | setsub (Index i, Index n, const TV &v) |
|
void | operator= (const FullVector< T > &a) |
| v = a More...
|
|
void | operator= (const T &a) |
|
void | operator+= (const FullVector< Real > &a) |
| v += a More...
|
|
void | operator-= (const FullVector< Real > &a) |
| v -= a More...
|
|
void | eq (const FullVector< Real > &a, Real f) |
| v = a*f More...
|
|
void | eq (const FullVector< Real > &a, const FullVector< Real > &b, Real f=1.0) |
| v = a+b*f More...
|
|
void | peq (const FullVector< Real > &a, Real f) |
| v += a*f More...
|
|
void | operator*= (Real f) |
| v *= f More...
|
|
Real | dot (const FullVector< Real > &a) const |
|
double | norm () const |
|
virtual | ~BaseVector () |
|
virtual const float * | elements (Index i0, Index n, float *src) const |
| Get the values of n elements, starting at element i0, into given float buffer, or return the pointer to the data if the in-memory format is compatible. More...
|
|
virtual const double * | elements (Index i0, Index n, double *src) const |
| Get the values of n elements, starting at element i0, into given double buffer, or return the pointer to the data if the in-memory format is compatible. More...
|
|
virtual const int * | elements (Index i0, Index n, int *src) const |
| Get the values of n elements, starting at element i0, into given int buffer, or return the pointer to the data if the in-memory format is compatible. More...
|
|
virtual void | set (Index i0, Index n, const float *src) |
| Write the values of n float elements, starting at element i0. More...
|
|
virtual void | set (Index i0, Index n, const double *src) |
| Write the values of n double elements, starting at element i0. More...
|
|
virtual void | set (Index i0, Index n, const int *src) |
| Write the values of n int elements, starting at element i0. More...
|
|
virtual void | add (Index i0, Index n, const float *src) |
| Add to the values of n float elements, starting at element i0. More...
|
|
virtual void | add (Index i0, Index n, const double *src) |
| Add to the values of n double elements, starting at element i0. More...
|
|
virtual void | add (Index i0, Index n, const int *src) |
| Add to the values of n int elements, starting at element i0. More...
|
|
virtual ElementType | getElementType () const |
|
virtual std::size_t | getElementSize () const |
|
virtual bool | isFull () const |
| Return true if this vector is full, i.a. all elements are stored in memory. More...
|
|
bool | isSparse () const |
|