array::array_proxy Class Reference

- Main Page
- Tutorials
- Functions
- Release Notes
- Examples

Public Member Functions
array::array_proxy Class Reference

Intermediate data class. More...

`#include <array.h>`

## Public Member Functions
| array_proxy (array &par, af_index_t *ssss, bool linear=false)
| array_proxy (const array_proxy &other)
| ~array_proxy ()
| operator array () const
| operator array ()
array_proxy & | operator= (const array_proxy &a)
array_proxy & | operator= (const array &a)
array_proxy & | operator= (const double &a)
array_proxy & | operator= (const cdouble &a)
array_proxy & | operator= (const cfloat &a)
array_proxy & | operator= (const float &a)
array_proxy & | operator= (const int &a)
array_proxy & | operator= (const unsigned &a)
array_proxy & | operator= (const bool &a)
array_proxy & | operator= (const char &a)
array_proxy & | operator= (const unsigned char &a)
array_proxy & | operator= (const long &a)
array_proxy & | operator= (const unsigned long &a)
array_proxy & | operator= (const long long &a)
array_proxy & | operator= (const unsigned long long &a)
array_proxy & | operator+= (const array_proxy &a)
array_proxy & | operator+= (const array &a)
array_proxy & | operator+= (const double &a)
array_proxy & | operator+= (const cdouble &a)
array_proxy & | operator+= (const cfloat &a)
array_proxy & | operator+= (const float &a)
array_proxy & | operator+= (const int &a)
array_proxy & | operator+= (const unsigned &a)
array_proxy & | operator+= (const bool &a)
array_proxy & | operator+= (const char &a)
array_proxy & | operator+= (const unsigned char &a)
array_proxy & | operator+= (const long &a)
array_proxy & | operator+= (const unsigned long &a)
array_proxy & | operator+= (const long long &a)
array_proxy & | operator+= (const unsigned long long &a)
array_proxy & | operator-= (const array_proxy &a)
array_proxy & | operator-= (const array &a)
array_proxy & | operator-= (const double &a)
array_proxy & | operator-= (const cdouble &a)
array_proxy & | operator-= (const cfloat &a)
array_proxy & | operator-= (const float &a)
array_proxy & | operator-= (const int &a)
array_proxy & | operator-= (const unsigned &a)
array_proxy & | operator-= (const bool &a)
array_proxy & | operator-= (const char &a)
array_proxy & | operator-= (const unsigned char &a)
array_proxy & | operator-= (const long &a)
array_proxy & | operator-= (const unsigned long &a)
array_proxy & | operator-= (const long long &a)
array_proxy & | operator-= (const unsigned long long &a)
array_proxy & | operator*= (const array_proxy &a)
array_proxy & | operator*= (const array &a)
array_proxy & | operator*= (const double &a)
array_proxy & | operator*= (const cdouble &a)
array_proxy & | operator*= (const cfloat &a)
array_proxy & | operator*= (const float &a)
array_proxy & | operator*= (const int &a)
array_proxy & | operator*= (const unsigned &a)
array_proxy & | operator*= (const bool &a)
array_proxy & | operator*= (const char &a)
array_proxy & | operator*= (const unsigned char &a)
array_proxy & | operator*= (const long &a)
array_proxy & | operator*= (const unsigned long &a)
array_proxy & | operator*= (const long long &a)
array_proxy & | operator*= (const unsigned long long &a)
array_proxy & | operator/= (const array_proxy &a)
array_proxy & | operator/= (const array &a)
array_proxy & | operator/= (const double &a)
array_proxy & | operator/= (const cdouble &a)
array_proxy & | operator/= (const cfloat &a)
array_proxy & | operator/= (const float &a)
array_proxy & | operator/= (const int &a)
array_proxy & | operator/= (const unsigned &a)
array_proxy & | operator/= (const bool &a)
array_proxy & | operator/= (const char &a)
array_proxy & | operator/= (const unsigned char &a)
array_proxy & | operator/= (const long &a)
array_proxy & | operator/= (const unsigned long &a)
array_proxy & | operator/= (const long long &a)
array_proxy & | operator/= (const unsigned long long &a)
array_proxy & | operator= (const short &a)
array_proxy & | operator= (const unsigned short &a)
array_proxy & | operator+= (const short &a)
array_proxy & | operator+= (const unsigned short &a)
array_proxy & | operator-= (const short &a)
array_proxy & | operator-= (const unsigned short &a)
array_proxy & | operator*= (const short &a)
array_proxy & | operator*= (const unsigned short &a)
array_proxy & | operator/= (const short &a)
array_proxy & | operator/= (const unsigned short &a)
af_array | get ()
af_array | get () const
dim_t | elements () const
template<typename T >
T * | host () const
void | host (void *ptr) const
dtype | type () const
dim4 | dims () const
dim_t | dims (unsigned dim) const
unsigned | numdims () const
size_t | bytes () const
array | copy () const
bool | isempty () const
bool | isscalar () const
bool | isvector () const
bool | isrow () const
bool | iscolumn () const
bool | iscomplex () const
bool | isreal () const
bool | isdouble () const
bool | issingle () const
bool | isrealfloating () const
bool | isfloating () const
bool | isinteger () const
bool | isbool () const
void | eval () const
array | as (dtype type) const
array | T () const
array | H () const
template<typename T >
T | scalar () const
template<typename T >
T * | device () const
void | unlock () const
void | lock () const
array::array_proxy | row (int index)
const array::array_proxy | row (int index) const
array::array_proxy | rows (int first, int last)
const array::array_proxy | rows (int first, int last) const
array::array_proxy | col (int index)
const array::array_proxy | col (int index) const
array::array_proxy | cols (int first, int last)
const array::array_proxy | cols (int first, int last) const
array::array_proxy | slice (int index)
const array::array_proxy | slice (int index) const
array::array_proxy | slices (int first, int last)
const array::array_proxy | slices (int first, int last) const

## Detailed Description

Intermediate data class.

Used for assignment and indexing.

Note
  This class is for internal book keeping while indexing. This class is not intended for use in user code.

## Constructor & Destructor Documentation

array_proxy | ( | array & | par,
|  | af_index_t * | ssss,
|  | bool | linear = `false`
| ) |  |

array_proxy | ( | const array_proxy & | other | ) |

~array_proxy | ( |  | ) |

## Member Function Documentation

array as | ( | dtype | type | ) | const

size_t bytes | ( |  | ) | const

array::array_proxy col | ( | int | index | ) |

const array::array_proxy col | ( | int | index | ) | const

array::array_proxy cols | ( | int | first,
|  | int | last
| ) |  |

const array::array_proxy cols | ( | int | first,
|  | int | last
| ) |  | const

array copy | ( |  | ) | const

T* device | ( |  | ) | const

dim4 dims | ( |  | ) | const

dim_t dims | ( | unsigned | dim | ) | const

dim_t elements | ( |  | ) | const

void eval | ( |  | ) | const

af_array get | ( |  | ) |

af_array get | ( |  | ) | const

array H | ( |  | ) | const

T* host | ( |  | ) | const

void host | ( | void * | ptr | ) | const

bool isbool | ( |  | ) | const

bool iscolumn | ( |  | ) | const

bool iscomplex | ( |  | ) | const

bool isdouble | ( |  | ) | const

bool isempty | ( |  | ) | const

bool isfloating | ( |  | ) | const

bool isinteger | ( |  | ) | const

bool isreal | ( |  | ) | const
| inline

bool isrealfloating | ( |  | ) | const

bool isrow | ( |  | ) | const

bool isscalar | ( |  | ) | const

bool issingle | ( |  | ) | const

bool isvector | ( |  | ) | const

void lock | ( |  | ) | const

unsigned numdims | ( |  | ) | const

operator array | ( |  | ) | const

operator array | ( |  | ) |

array_proxy& operator*= | ( | const double & | a | ) |

array_proxy& operator*= | ( | const array_proxy & | a | ) |

array_proxy& operator*= | ( | const array & | a | ) |

array_proxy& operator*= | ( | const cdouble & | a | ) |

array_proxy& operator*= | ( | const cfloat & | a | ) |

array_proxy& operator*= | ( | const float & | a | ) |

array_proxy& operator*= | ( | const int & | a | ) |

array_proxy& operator*= | ( | const unsigned & | a | ) |

array_proxy& operator*= | ( | const char & | a | ) |

array_proxy& operator*= | ( | const bool & | a | ) |

array_proxy& operator*= | ( | const unsigned char & | a | ) |

array_proxy& operator*= | ( | const long & | a | ) |

array_proxy& operator*= | ( | const long long & | a | ) |

array_proxy& operator*= | ( | const unsigned long & | a | ) |

array_proxy& operator*= | ( | const unsigned long long & | a | ) |

array_proxy& operator*= | ( | const unsigned short & | a | ) |

array_proxy& operator*= | ( | const short & | a | ) |

array_proxy& operator+= | ( | const array_proxy & | a | ) |

array_proxy& operator+= | ( | const unsigned long long & | a | ) |

array_proxy& operator+= | ( | const array & | a | ) |

array_proxy& operator+= | ( | const double & | a | ) |

array_proxy& operator+= | ( | const cdouble & | a | ) |

array_proxy& operator+= | ( | const cfloat & | a | ) |

array_proxy& operator+= | ( | const float & | a | ) |

array_proxy& operator+= | ( | const unsigned & | a | ) |

array_proxy& operator+= | ( | const int & | a | ) |

array_proxy& operator+= | ( | const bool & | a | ) |

array_proxy& operator+= | ( | const char & | a | ) |

array_proxy& operator+= | ( | const unsigned char & | a | ) |

array_proxy& operator+= | ( | const long & | a | ) |

array_proxy& operator+= | ( | const long long & | a | ) |

array_proxy& operator+= | ( | const unsigned long & | a | ) |

array_proxy& operator+= | ( | const short & | a | ) |

array_proxy& operator+= | ( | const unsigned short & | a | ) |

array_proxy& operator-= | ( | const array_proxy & | a | ) |

array_proxy& operator-= | ( | const array & | a | ) |

array_proxy& operator-= | ( | const double & | a | ) |

array_proxy& operator-= | ( | const unsigned & | a | ) |

array_proxy& operator-= | ( | const cdouble & | a | ) |

array_proxy& operator-= | ( | const cfloat & | a | ) |

array_proxy& operator-= | ( | const float & | a | ) |

array_proxy& operator-= | ( | const int & | a | ) |

array_proxy& operator-= | ( | const bool & | a | ) |

array_proxy& operator-= | ( | const char & | a | ) |

array_proxy& operator-= | ( | const unsigned char & | a | ) |

array_proxy& operator-= | ( | const long & | a | ) |

array_proxy& operator-= | ( | const unsigned long & | a | ) |

array_proxy& operator-= | ( | const long long & | a | ) |

array_proxy& operator-= | ( | const unsigned long long & | a | ) |

array_proxy& operator-= | ( | const short & | a | ) |

array_proxy& operator-= | ( | const unsigned short & | a | ) |

array_proxy& operator/= | ( | const array & | a | ) |

array_proxy& operator/= | ( | const cdouble & | a | ) |

array_proxy& operator/= | ( | const double & | a | ) |

array_proxy& operator/= | ( | const float & | a | ) |

array_proxy& operator/= | ( | const unsigned & | a | ) |

array_proxy& operator/= | ( | const char & | a | ) |

array_proxy& operator/= | ( | const long long & | a | ) |

array_proxy& operator/= | ( | const unsigned long & | a | ) |

array_proxy& operator/= | ( | const unsigned long long & | a | ) |

array_proxy& operator/= | ( | const cfloat & | a | ) |

array_proxy& operator/= | ( | const unsigned char & | a | ) |

array_proxy& operator/= | ( | const long & | a | ) |

array_proxy& operator/= | ( | const bool & | a | ) |

array_proxy& operator/= | ( | const int & | a | ) |

array_proxy& operator/= | ( | const array_proxy & | a | ) |

array_proxy& operator/= | ( | const unsigned short & | a | ) |

array_proxy& operator/= | ( | const short & | a | ) |

array_proxy& operator= | ( | const long long & | a | ) |

array_proxy& operator= | ( | const cfloat & | a | ) |

array_proxy& operator= | ( | const char & | a | ) |

array_proxy& operator= | ( | const int & | a | ) |

array_proxy& operator= | ( | const unsigned long & | a | ) |

array_proxy& operator= | ( | const array_proxy & | a | ) |

array_proxy& operator= | ( | const array & | a | ) |

array_proxy& operator= | ( | const float & | a | ) |

array_proxy& operator= | ( | const bool & | a | ) |

array_proxy& operator= | ( | const double & | a | ) |

array_proxy& operator= | ( | const long & | a | ) |

array_proxy& operator= | ( | const cdouble & | a | ) |

array_proxy& operator= | ( | const unsigned char & | a | ) |

array_proxy& operator= | ( | const unsigned long long & | a | ) |

array_proxy& operator= | ( | const unsigned & | a | ) |

array_proxy& operator= | ( | const unsigned short & | a | ) |

array_proxy& operator= | ( | const short & | a | ) |

array::array_proxy row | ( | int | index | ) |

const array::array_proxy row | ( | int | index | ) | const

array::array_proxy rows | ( | int | first,
|  | int | last
| ) |  |

const array::array_proxy rows | ( | int | first,
|  | int | last
| ) |  | const

T scalar | ( |  | ) | const

array::array_proxy slice | ( | int | index | ) |

const array::array_proxy slice | ( | int | index | ) | const

array::array_proxy slices | ( | int | first,
|  | int | last
| ) |  |

const array::array_proxy slices | ( | int | first,
|  | int | last
| ) |  | const

array T | ( |  | ) | const

dtype type | ( |  | ) | const

void unlock | ( |  | ) | const

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

- array.h