![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Public Member Functions | |
| TMat & | M () |
| const TMat & | M () const |
| void | p2pm (cudaStream_t stream=0) |
| NumCell (long nxi=0, long nyi=1) | |
| NumCell (long nxi, long nyi, long mx, long my, T *pin=NULL) | |
| template<typename L> | |
| NumCell (long nxi, long nyi, L *mx, L *my, T *pin=NULL) | |
| NumCell (const NumCell &in) | |
| NumCell & | operator= (const NumCell &in) |
| void | init (long nxi=0, long nyi=1) |
| NumCell | New () const |
| void | replace (T *pnew, cudaStream_t stream) |
| NumCell | Vector () const |
| void | Copy (const NumCell &in, cudaStream_t stream=0) |
| T & | operator() (int ix, int iy) |
| const T & | operator() (int ix, int iy) const |
| T * | operator() () |
| const T * | operator() () const |
| T & | operator() (int i) |
| const T & | operator() (int i) const |
| long | N () const |
| long | Nx () const |
| long | Ny () const |
| int | NRef () const |
| void | Zero (cudaStream_t stream=0) |
| void | Write (cudaStream_t stream, file_t *fp) const |
| void | Write (cudaStream_t stream, const char *format,...) const |
| Public Member Functions inherited from CellArray< NumArray< T, Cpu > > | |
| void | deinit () |
| T & | operator() (int ix, int iy) |
| const T & | operator() (int ix, int iy) const |
| T * | operator() () |
| const T * | operator() () const |
| T & | operator() (int i) |
| const T & | operator() (int i) const |
| int | NRef () const |
| T * | Col (int icol) |
| const T * | Col (int icol) const |
| long | Nx () const |
| long | Ny () const |
| long | N () const |
| operator bool () const | |
| void | init (long nxi=0, long nyi=1) |
| CellArray | Vector () const |
| CellArray | trans (stream_t &stream) |
| CellArray (long nxi, long nyi=1, T *pi=NULL, int own=1) | |
| void | Zero (cudaStream_t stream=0) |
| void | Write (cudaStream_t stream, file_t *fp) const |
| Public Member Functions inherited from Array< T, CpuObj > | |
| ~Array () | |
| T & | operator() (int ix, int iy) |
| const T & | operator() (int ix, int iy) const |
| T & | R (int ix, int iy=0) |
| T * | Col (int icol) |
| const T * | Col (int icol) const |
| long | Nx () const |
| long | Ny () const |
| long | N () const |
| operator bool () const | |
| void | init (long nxi=0, long nyi=1) |
| Array () | |
| Array (long nxi, long nyi=1, T *pi=NULL, int own=1) | |
| Array (long nxi, long nyi, const Array &pi, long offset=0) | |
| Array (const Array &in) | |
| Array & | operator= (const Array &in) |
| Array | Vector () const |
| void | deinit () |
| operator T* () | |
| T * | operator() () |
| const T * | operator() () const |
| T & | operator() (int i) |
| const T & | operator() (int i) const |
| int | NRef () const |
Data Fields | |
| Array< T *, Gpu > | pm |
| Data Fields inherited from CellArray< NumArray< T, Cpu > > | |
| string | keywords |
| Data Fields inherited from Array< T, CpuObj > | |
| string | keywords |
Protected Attributes | |
| T * | p |
| long | nx |
| long | ny |
| Protected Attributes inherited from CellArray< NumArray< T, Cpu > > | |
| long | nx |
| long | ny |
| T * | p |
| Protected Attributes inherited from Array< T, CpuObj > | |
| long | nx |
| long | ny |
| T * | p |
Additional Inherited Members | |
| Public Types inherited from Array< T, CpuObj > | |
| typedef T | type |
NumCell is a special Array of array of numerical data that can store multiple Arrays of numerical data in continuous region.
| NumCell< T, Dev >::NumCell | ( | long | nxi = 0, |
| long | nyi = 1 ) |
Create a cell array with empty blocks.
| [in] | nxi | Number of rows. |
| [in] | nyi | Number of columns. |
| NumCell< T, Dev >::NumCell | ( | long | nxi, |
| long | nyi, | ||
| long | mx, | ||
| long | my, | ||
| T * | pin = NULL ) |
Create a cell array with blocks of the same size in continuous memory.
| [in] | nxi | Number of rows. |
| [in] | nyi | Number of columns. |
| [in] | mx | Number of rows of each block. |
| [in] | my | Number of columns of each block. |
| [in] | pin | Existing memory to use (not owned). Allocated if NULL. |
| NumCell< T, Dev >::NumCell | ( | long | nxi, |
| long | nyi, | ||
| L * | mx, | ||
| L * | my, | ||
| T * | pin = NULL ) |
Create a cell array with blocks of different sizes in continuous memory.
| [in] | nxi | Number of rows. |
| [in] | nyi | Number of columns. |
| [in] | mx | Number of rows of each block. Blocks with 0 are left empty. |
| [in] | my | Number of columns of each block. 1 if NULL. |
| [in] | pin | Existing memory to use (not owned). Allocated if NULL. |
| NumCell< T, Dev >::NumCell | ( | const NumCell< T, Dev > & | in | ) |
Create a reference to an existing cell array.
| [in] | in | Cell array to reference. |
| TMat & NumCell< T, Dev >::M | ( | ) |
| const TMat & NumCell< T, Dev >::M | ( | ) | const |
| void NumCell< T, Dev >::p2pm | ( | cudaStream_t | stream = 0 | ) |
Update the device array pm of block data pointers.
| [in] | stream | Stream to copy in. |
| NumCell & NumCell< T, Dev >::operator= | ( | const NumCell< T, Dev > & | in | ) |
Reference in.
| [in] | in | Cell array to reference. |
| void NumCell< T, Dev >::init | ( | long | nxi = 0, |
| long | nyi = 1 ) |
Reallocate the cell array with empty blocks.
| [in] | nxi | Number of rows. |
| [in] | nyi | Number of columns. |
| void NumCell< T, Dev >::replace | ( | T * | pnew, |
| cudaStream_t | stream ) |
Replace the data with a new set. We don't own pnew.
| [in] | pnew | New data with the same total size, laid out block after block. |
| [in] | stream | Stream to update pm in. |
| NumCell NumCell< T, Dev >::Vector | ( | ) | const |
| void NumCell< T, Dev >::Copy | ( | const NumCell< T, Dev > & | in, |
| cudaStream_t | stream = 0 ) |
Copy the data. Zero data if input data is empty. Reallocate if size mismatch. The continuous data M() is copied if both have it with the same size, otherwise the data is copied block by block.
| [in] | in | Cell array to copy from. |
| [in] | stream | Stream to run in. |
| ( | int | ix, | |
| int | iy ) |
| [in] | ix | Row index. |
| [in] | iy | Column index. |
| ( | int | ix, | |
| int | iy ) const |
| [in] | ix | Row index. |
| [in] | iy | Column index. |
| ( | ) |
| ( | ) | const |
| ( | int | i | ) |
| [in] | i | Index. |
| ( | int | i | ) | const |
| [in] | i | Index. |
| ( | ) | const |
| ( | ) | const |
| ( | ) | const |
| ( | ) | const |
| void CellArray< T >::Zero | ( | cudaStream_t | stream = 0 | ) |
Zero each block.
| [in] | stream | Stream to run in. |
| void CellArray< T >::Write | ( | cudaStream_t | stream, |
| file_t * | fp ) const |
Write the cell array to file.
| [in] | stream | Stream to copy in. |
| [in,out] | fp | File to write to. |
| void CellArray< T >::Write | ( | cudaStream_t | stream, |
| const char * | format, | ||
| ... ) const |
Write the cell array to a file named by format.
| [in] | stream | Stream to copy in. |
| [in] | format | printf style format of the file name, followed by arguments. |