|
OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
#include <Tps.h>


Public Member Functions | |
| Vector () | |
| Default constructor. More... | |
| Vector (int n) | |
| Constructor. More... | |
| Vector (int n, const T &t) | |
| Constructor. More... | |
| Vector (const Array1D< T > &) | |
| Conversion. More... | |
| Vector (const Vector< T > &) | |
| ~Vector () | |
| Vector< T > & | operator= (const Vector< T > &) |
| Vector< T > | operator- () const |
| Change sign of vector. More... | |
| Vector< T > & | operator*= (const T &) |
| Multiply by scalar and assign. More... | |
| Vector< T > & | operator/= (const T &) |
| Divide by scalar and assign. More... | |
| Vector< T > & | operator+= (const Vector< T > &) |
| Add vector and assign. More... | |
| Vector< T > & | operator-= (const Vector< T > &) |
| Subtract vector and assign. More... | |
Public Member Functions inherited from Array1D< T > | |
| Array1D () | |
| Default constructor. More... | |
| Array1D (int n) | |
| Constructor. More... | |
| Array1D (int n, const T &t) | |
| Constructor. More... | |
| Array1D (const Array1D< T > &) | |
| ~Array1D () | |
| Array1D< T > & | operator= (const Array1D< T > &) |
| T & | operator() (int n) |
| Get reference to element. More... | |
| const T & | operator() (int n) const |
| Get value of element. More... | |
| T & | operator[] (int) |
| Get reference to element. More... | |
| const T & | operator[] (int) const |
| Get value of element. More... | |
| iterator | begin () |
| Get beginning of data. More... | |
| iterator | end () |
| Get end of data. More... | |
| const_iterator | begin () const |
| Get beginning of data. More... | |
| const_iterator | end () const |
| Get end of data. More... | |
| int | size () const |
| Get array size. More... | |
| void | resize (int size) |
| Change array size. More... | |
Additional Inherited Members | |
Public Types inherited from Array1D< T > | |
| typedef T | value_type |
| The value type of this array. More... | |
| typedef T * | iterator |
| The iterator type for the array. More... | |
| typedef const T * | const_iterator |
| The iterator type for constant array. More... | |
Protected Attributes inherited from Array1D< T > | |
| int | len |
| T * | data |
Add vector and assign.
Definition at line 175 of file Vector.h.
References begin, Array1D< T >::begin(), and end.

Change sign of vector.
Definition at line 151 of file Vector.h.
References begin, Array1D< T >::begin(), end, and test::result.

Subtract vector and assign.
Definition at line 183 of file Vector.h.
References begin, Array1D< T >::begin(), and end.

Definition at line 144 of file Vector.h.
References Array1D< T >::operator=().

1.8.5