Subtract one input from another. More...

## Functions

AFAPI af_err af_sub (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
C Interface for subtracting an array from another. More...

AFAPI array operator- (const array &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const bool &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const int &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const unsigned &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const char &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const unsigned char &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const long &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const unsigned long &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const long long &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const unsigned long long &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const double &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const float &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const cfloat &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const cdouble &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const bool &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const int &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const unsigned &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const char &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const unsigned char &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const long &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const unsigned long &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const long long &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const unsigned long long &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const double &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const float &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const cfloat &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const cdouble &rhs)

AFAPI array operator- (const short &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const unsigned short &lhs, const array &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const short &rhs)
Subtracts two arrays or an array and a value. More...

AFAPI array operator- (const array &lhs, const unsigned short &rhs)

## Detailed Description

Subtract one input from another.

## ◆ af_sub()

 AFAPI af_err af_sub ( af_array * out, const af_array lhs, const af_array rhs, const bool batch )

C Interface for subtracting an array from another.

Parameters
 [out] out will contain result of lhs - rhs [in] lhs first input [in] rhs second input [in] batch specifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly

## ◆ operator-() [1/31]

 AFAPI array af::operator- ( const array & lhs, const unsigned short & rhs )

## ◆ operator-() [2/31]

 AFAPI array af::operator- ( const array & lhs, const short & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [3/31]

 AFAPI array af::operator- ( const unsigned short & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [4/31]

 AFAPI array af::operator- ( const short & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [5/31]

 AFAPI array af::operator- ( const array & lhs, const cdouble & rhs )

## ◆ operator-() [6/31]

 AFAPI array af::operator- ( const array & lhs, const cfloat & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [7/31]

 AFAPI array af::operator- ( const array & lhs, const float & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [8/31]

 AFAPI array af::operator- ( const array & lhs, const double & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [9/31]

 AFAPI array af::operator- ( const array & lhs, const unsigned long long & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [10/31]

 AFAPI array af::operator- ( const array & lhs, const long long & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [11/31]

 AFAPI array af::operator- ( const array & lhs, const unsigned long & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [12/31]

 AFAPI array af::operator- ( const array & lhs, const long & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [13/31]

 AFAPI array af::operator- ( const array & lhs, const unsigned char & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [14/31]

 AFAPI array af::operator- ( const array & lhs, const char & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [15/31]

 AFAPI array af::operator- ( const array & lhs, const unsigned & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [16/31]

 AFAPI array af::operator- ( const array & lhs, const int & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [17/31]

 AFAPI array af::operator- ( const array & lhs, const bool & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [18/31]

 AFAPI array af::operator- ( const cdouble & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [19/31]

 AFAPI array af::operator- ( const cfloat & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [20/31]

 AFAPI array af::operator- ( const float & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [21/31]

 AFAPI array af::operator- ( const double & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [22/31]

 AFAPI array af::operator- ( const unsigned long long & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [23/31]

 AFAPI array af::operator- ( const long long & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [24/31]

 AFAPI array af::operator- ( const unsigned long & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [25/31]

 AFAPI array af::operator- ( const long & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [26/31]

 AFAPI array af::operator- ( const unsigned char & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [27/31]

 AFAPI array af::operator- ( const char & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [28/31]

 AFAPI array af::operator- ( const unsigned & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [29/31]

 AFAPI array af::operator- ( const int & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [30/31]

 AFAPI array af::operator- ( const bool & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs

## ◆ operator-() [31/31]

 AFAPI array af::operator- ( const array & lhs, const array & rhs )

Subtracts two arrays or an array and a value.

Parameters
 [in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
Returns
an array which is the subtraction of the lhs and rhs