|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <Vector.h>
Public Types | |
| typedef T | value_type |
| The value type of this array. | |
| typedef T * | iterator |
| The iterator type for the array. | |
| typedef const T * | const_iterator |
| The iterator type for constant array. | |
Public Member Functions | |
| Vector () | |
| Default constructor. | |
| Vector (int n) | |
| Constructor. | |
| Vector (int n, const T &t) | |
| Constructor. | |
| Vector (const Array1D< T > &) | |
| Conversion. | |
| Vector (const Vector< T > &) | |
| ~Vector () | |
| Vector< T > & | operator= (const Vector< T > &) |
| Vector< T > | operator- () const |
| Change sign of vector. | |
| Vector< T > & | operator*= (const T &) |
| Multiply by scalar and assign. | |
| Vector< T > & | operator/= (const T &) |
| Divide by scalar and assign. | |
| Vector< T > & | operator+= (const Vector< T > &) |
| Add vector and assign. | |
| Vector< T > & | operator-= (const Vector< T > &) |
| Subtract vector and assign. | |
| T & | operator() (int n) |
| Get reference to element. | |
| const T & | operator() (int n) const |
| Get value of element. | |
| T & | operator[] (int) |
| Get reference to element. | |
| const T & | operator[] (int) const |
| Get value of element. | |
| iterator | begin () |
| Get beginning of data. | |
| const_iterator | begin () const |
| Get beginning of data. | |
| iterator | end () |
| Get end of data. | |
| const_iterator | end () const |
| Get end of data. | |
| int | size () const |
| Get array size. | |
| void | resize (int size) |
| Change array size. | |
Protected Attributes | |
| int | len |
| T * | data |
|
inherited |
|
inherited |
|
inherited |
| Vector< T >::Vector | ( | ) |
Default constructor.
Definition at line 109 of file Vector.h.
References Array1D< T >::Array1D().
Referenced by operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), and Vector().
|
explicit |
Constructor.
Definition at line 115 of file Vector.h.
References Array1D< T >::Array1D().
| Vector< T >::Vector | ( | int | n, |
| const T & | t ) |
Constructor.
Definition at line 121 of file Vector.h.
References Array1D< T >::Array1D().
Conversion.
Definition at line 133 of file Vector.h.
References Array1D< T >::Array1D().
Definition at line 127 of file Vector.h.
References Array1D< T >::Array1D(), and Vector().
|
inherited |
Get beginning of data.
Definition at line 204 of file Array1D.h.
References data.
Referenced by Array1D(), Array1D(), LUMatrix< T >::backSubstitute(), FTps< T, N >::derivative(), Matrix< T >::dotcv(), Matrix< T >::dotrv(), euclidean_norm(), FTps< T, N >::evalMonoms(), Array2D< T >::getColumn(), Array2D< T >::getRow(), FVps< T, N >::linearTerms(), operator*(), operator*(), operator+(), Vector< T >::operator+=(), operator-(), Vector< T >::operator-(), Vector< T >::operator-=(), operator=(), Array2D< T >::putColumn(), Array2D< T >::putRow(), and FLieGenerator< T, N >::transform().
|
inherited |
|
inherited |
Get end of data.
Definition at line 210 of file Array1D.h.
Referenced by Array1D(), Array1D(), Matrix< T >::dotrv(), euclidean_norm(), operator*(), operator*(), operator+(), operator-(), operator=(), Array2D< T >::putColumn(), and Array2D< T >::putRow().
|
inherited |
|
inherited |
|
inherited |
Change sign of vector.
Definition at line 151 of file Vector.h.
References Array1D< T >::begin(), begin(), end(), Array1D< T >::size(), and Vector().
Definition at line 144 of file Vector.h.
References Array1D< T >::operator=(), and Vector().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
Get array size.
Definition at line 228 of file Array1D.h.
References len.
Referenced by LUMatrix< T >::backSubstitute(), VpsMap< T >::constantTerm(), Matrix< T >::dotcv(), Matrix< T >::dotrv(), Tps< T >::evaluate(), Array2D< T >::getColumn(), Array2D< T >::getRow(), operator()(), operator()(), operator+(), Vps< T >::operator+=(), operator-(), Vector< T >::operator-(), Vps< T >::operator-=(), operator<<(), Array2D< T >::putColumn(), Array2D< T >::putRow(), scaled_norm(), Tps< T >::substitute(), Tps< T >::substitute(), VpsMap< T >::substitute(), and FLieGenerator< T, N >::transform().
|
protectedinherited |
Definition at line 119 of file Array1D.h.
Referenced by Array1D(), Array1D(), Array1D(), Array1D(), begin(), begin(), end(), end(), operator()(), operator()(), operator=(), operator[](), operator[](), resize(), and ~Array1D().
|
protectedinherited |