|
OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
One-dimensional array. More...
#include <Array1D.h>

Public Types | |
| 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... | |
Public Member Functions | |
| 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... | |
Protected Attributes | |
| int | len |
| T * | data |
One-dimensional array.
| typedef const T* Array1D< T >::const_iterator |
| typedef T Array1D< T >::value_type |
Constructor.
Definition at line 146 of file Array1D.h.
References Array1D< T >::begin(), and Array1D< T >::end().

Definition at line 133 of file Array1D.h.
References Array1D< T >::begin(), and Array1D< T >::end().

Get beginning of data.
Definition at line 204 of file Array1D.h.
Referenced by Array1D< T >::Array1D(), LUMatrix< T >::backSubstitute(), FTps< T, N >::derivative(), Matrix< T >::dotcv(), Matrix< T >::dotrv(), euclidean_norm(), FTps< T, N >::evalMonoms(), Array2D< T >::getColumn(), TpsData::getProductArray(), Array2D< T >::getRow(), FVps< T, N >::linearTerms(), operator*(), operator+(), Vector< T >::operator+=(), Vector< T >::operator-(), operator-(), Vector< T >::operator-=(), Array1D< T >::operator=(), Array2D< T >::putColumn(), Array2D< T >::putRow(), and FLieGenerator< T, N >::transform().
| Array1D< T >::const_iterator Array1D< T >::begin |
Get end of data.
Definition at line 210 of file Array1D.h.
Referenced by Array1D< T >::Array1D(), Matrix< T >::dotrv(), euclidean_norm(), operator*(), operator+(), operator-(), Array1D< T >::operator=(), Array2D< T >::putColumn(), and Array2D< T >::putRow().
| Array1D< T >::const_iterator Array1D< T >::end |
| T & Array1D< T >::operator() | ( | int | n | ) |
| const T & Array1D< T >::operator() | ( | int | n | ) | const |
Definition at line 159 of file Array1D.h.
References Array1D< T >::begin(), begin(), Array1D< T >::end(), Array1D< T >::len, and Attrib::Legacy::Distribution::T.
Referenced by Vector< T >::operator=().

|
inline |
|
inline |
| void Array1D< T >::resize | ( | int | size | ) |
Change array size.
Definition at line 234 of file Array1D.h.
References begin(), Hypervolume::n, and Attrib::Legacy::Distribution::T.

| int Array1D< T >::size |
Get array size.
Definition at line 228 of file Array1D.h.
Referenced by LUMatrix< T >::backSubstitute(), VpsMap< T >::constantTerm(), Matrix< T >::dotcv(), Matrix< T >::dotrv(), Tps< T >::evaluate(), Array2D< T >::getColumn(), TpsMonomial::getIndex(), TpsMonomial::getOrder(), Array2D< T >::getRow(), TpsMonomial::getVariables(), operator+(), Vps< T >::operator+=(), operator-(), Vps< T >::operator-=(), operator<<(), Array2D< T >::putColumn(), Array2D< T >::putRow(), scaled_norm(), Tps< T >::substitute(), VpsMap< T >::substitute(), and FLieGenerator< T, N >::transform().
|
protected |
Definition at line 116 of file Array1D.h.
Referenced by Array1D< T >::operator=().