A high-performance general-purpose compute library

Assignes the value(s) of val to the elements of the af::array. More...

arrayoperator= (const array &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const double &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const cdouble &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const cfloat &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const float &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const int &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const unsigned &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const bool &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const char &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const unsigned char &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const long &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const unsigned long &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const long long &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const unsigned long long &val)
arrayoperator= (const short &val)
 Assignes the value(s) of val to the elements of the array.
arrayoperator= (const unsigned short &val)
arrayoperator= (const signed char &val)
 Assignes the value(s) of val to the elements of the array.

Detailed Description

Assignes the value(s) of val to the elements of the af::array.

Assigns a value


Function Documentation

◆ operator=() [1/17]

array & operator= ( const array & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [2/17]

array & operator= ( const bool & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [3/17]

array & operator= ( const cdouble & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [4/17]

array & operator= ( const cfloat & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [5/17]

array & operator= ( const char & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [6/17]

array & operator= ( const double & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [7/17]

array & operator= ( const float & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [8/17]

array & operator= ( const int & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [9/17]

array & operator= ( const long & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [10/17]

array & operator= ( const long long & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [11/17]

array & operator= ( const short & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [12/17]

array & operator= ( const signed char & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [13/17]

array & operator= ( const unsigned & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [14/17]

array & operator= ( const unsigned char & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [15/17]

array & operator= ( const unsigned long & val)

Assignes the value(s) of val to the elements of the array.

Parameters
[in]valis the value to be assigned to the /ref af::array
Returns
the reference to this
Note
This is a copy on write operation. The copy only occurs when the operator() is used on the left hand side.

◆ operator=() [16/17]

array & operator= ( const unsigned long long & val)

◆ operator=() [17/17]

array & operator= ( const unsigned short & val)