MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
NumArray< T, Dev > Class Template Reference

Only for array of numerical data. More...

+ Inheritance diagram for NumArray< T, Dev >:
+ Collaboration diagram for NumArray< T, Dev >:

Public Member Functions

NumArray trans (stream_t &stream)
 
 NumArray (long nxi, long nyi=1, T *pi=NULL, int own=1)
 
 NumArray (long nxi, long nyi, const NumArray &pi, long offset=0)
 
 NumArray (const dmat *A)
 
 NumArray (const cmat *A)
 
 NumArray (const smat *A)
 
 NumArray (const zmat *A)
 
NumArray Vector () const
 
void Zero (cudaStream_t stream=0)
 
void Set (T alpha, cudaStream_t stream=0)
 
template<typename S >
void Copy (const NumArray< S, Dev > &in, cudaStream_t stream=0)
 
void Write (cudaStream_t stream, file_t *fp) const
 
void Write (cudaStream_t stream, const char *format,...) const
 
 NumArray (const dmat *A)
 
 NumArray (const cmat *A)
 
 NumArray (const smat *A)
 
 NumArray (const zmat *A)
 
void deinit ()
 
int NRef () const
 
T * Col (int icol)
 
const T * Col (int icol) const
 
long Nx () const
 
long Ny () const
 
long N () const
 
void init (long nxi=0, long nyi=1)
 
- Public Member Functions inherited from Array< T, Dev >
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 (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)
 
Arrayoperator= (const Array &in)
 
Array Vector () const
 
void deinit ()
 
int NRef () const
 

Data Fields

string keywords
 
- Data Fields inherited from Array< T, Dev >
string keywords
 

Protected Attributes

long nx
 
long ny
 
T * p
 
- Protected Attributes inherited from Array< T, Dev >
long nx =0
 
long ny =0
 
T * p
 

Additional Inherited Members

- Public Types inherited from Array< T, Dev >
typedef T type
 

Detailed Description

template<typename T, template< typename > class Dev = Cpu>
class NumArray< T, Dev >

Only for array of numerical data.


The documentation for this class was generated from the following file: