|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
One-dimensional array. More...
#include <Array1D.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 | |
| Array1D () | |
| Default constructor. | |
| Array1D (int n) | |
| Constructor. | |
| Array1D (int n, const T &t) | |
| Constructor. | |
| Array1D (const Array1D< T > &) | |
| ~Array1D () | |
| Array1D< T > & | operator= (const Array1D< T > &) |
| 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. | |
| iterator | end () |
| Get end of data. | |
| const_iterator | begin () const |
| Get beginning 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 |
| typedef const T* Array1D< T >::const_iterator |
| typedef T* Array1D< T >::iterator |
| typedef T Array1D< T >::value_type |
| Array1D< T >::Array1D | ( | ) |
Default constructor.
Definition at line 127 of file Array1D.h.
Referenced by Array1D(), operator=(), Vector< T >::Vector(), Vector< T >::Vector(), Vector< T >::Vector(), Vector< T >::Vector(), and Vector< T >::Vector().
|
explicit |
| Array1D< T >::Array1D | ( | int | n, |
| const T & | t ) |
| Array1D< T >::iterator Array1D< T >::begin | ( | ) |
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().
| Array1D< T >::const_iterator Array1D< T >::begin | ( | ) | const |
| Array1D< T >::iterator Array1D< T >::end | ( | ) |
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().
| Array1D< T >::const_iterator Array1D< T >::end | ( | ) | const |
| T & Array1D< T >::operator() | ( | int | n | ) |
| const T & Array1D< T >::operator() | ( | int | n | ) | const |
|
inline |
|
inline |
| void Array1D< T >::resize | ( | int | size | ) |
| int Array1D< T >::size | ( | ) | const |
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().
|
protected |
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().
|
protected |