A high-performance general-purpose compute library

Shift the bits of integer arrays left. More...

Functions

af_err af_bitshiftl (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface to shift the bits of integer arrays left.
AFAPI array operator<< (const array &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const bool &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const int &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const unsigned &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const char &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const unsigned char &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const unsigned long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const long long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const unsigned long long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const double &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const float &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const cfloat &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const cdouble &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const bool &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const int &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const unsigned &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const char &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const unsigned char &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const unsigned long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const long long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const unsigned long long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const double &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const float &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const cfloat &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const cdouble &rhs)
AFAPI array operator<< (const short &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const unsigned short &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const short &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const unsigned short &rhs)
AFAPI array operator<< (const signed char &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
AFAPI array operator<< (const array &lhs, const signed char &rhs)
 Performs an left shift operation on two arrays or an array and a value.

Detailed Description

Shift the bits of integer arrays left.

Note
This function supports integer only.

Function Documentation

◆ af_bitshiftl()

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

C Interface to shift the bits of integer arrays left.

Parameters
[out]outleft shift
[in]lhsvalues to shift
[in]rhsn bits to shift
[in]batchbatch mode
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ operator<<() [1/33]

AFAPI array operator<< ( const array & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [2/33]

AFAPI array operator<< ( const array & lhs,
const bool & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [3/33]

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

◆ operator<<() [4/33]

AFAPI array operator<< ( const array & lhs,
const cfloat & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [5/33]

AFAPI array operator<< ( const array & lhs,
const char & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [6/33]

AFAPI array operator<< ( const array & lhs,
const double & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [7/33]

AFAPI array operator<< ( const array & lhs,
const float & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [8/33]

AFAPI array operator<< ( const array & lhs,
const int & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [9/33]

AFAPI array operator<< ( const array & lhs,
const long & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [10/33]

AFAPI array operator<< ( const array & lhs,
const long long & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [11/33]

AFAPI array operator<< ( const array & lhs,
const short & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [12/33]

AFAPI array operator<< ( const array & lhs,
const signed char & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [13/33]

AFAPI array operator<< ( const array & lhs,
const unsigned & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [14/33]

AFAPI array operator<< ( const array & lhs,
const unsigned char & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [15/33]

AFAPI array operator<< ( const array & lhs,
const unsigned long & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [16/33]

AFAPI array operator<< ( const array & lhs,
const unsigned long long & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [17/33]

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

◆ operator<<() [18/33]

AFAPI array operator<< ( const bool & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [19/33]

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

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [20/33]

AFAPI array operator<< ( const cfloat & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [21/33]

AFAPI array operator<< ( const char & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [22/33]

AFAPI array operator<< ( const double & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [23/33]

AFAPI array operator<< ( const float & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [24/33]

AFAPI array operator<< ( const int & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [25/33]

AFAPI array operator<< ( const long & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [26/33]

AFAPI array operator<< ( const long long & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [27/33]

AFAPI array operator<< ( const short & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [28/33]

AFAPI array operator<< ( const signed char & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [29/33]

AFAPI array operator<< ( const unsigned & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [30/33]

AFAPI array operator<< ( const unsigned char & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [31/33]

AFAPI array operator<< ( const unsigned long & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [32/33]

AFAPI array operator<< ( const unsigned long long & lhs,
const array & rhs )

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs

◆ operator<<() [33/33]

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

Performs an left shift operation on two arrays or an array and a value.

Parameters
[in]lhsthe left hand side value of the operand
[in]rhsthe right hand side value of the operand
Returns
an array with a left shift operation performed on each element of lhs and rhs