Calculate the remainder of a division. More...
Functions | |
| AFAPI af_err | af_rem (af_array *out, const af_array lhs, const af_array rhs, const bool batch) | 
| C Interface to calculate the remainder.  More... | |
| AFAPI array | rem (const array &lhs, const array &rhs) | 
| AFAPI array | rem (const array &lhs, const double rhs) | 
| AFAPI array | rem (const double lhs, const array &rhs) | 
Calculate the remainder of a division.
C Interface to calculate the remainder.
For integers, it returns the same output as modulus (% operator) For floating point numbers, it returns the same as remainder from <math.h>
| [out] | out | remainder | 
| [in] | lhs | numerator | 
| [in] | rhs | denominator | 
| [in] | batch | batch mode | 
C++ Interface to calculate the remainder.
For integers, it returns the same output as modulus (% operator) For floating point numbers, it returns the same as std::remainder from <cmath>
| [in] | lhs | numerator; can be an array or a scalar | 
| [in] | rhs | denominator; can be an array or a scalar | 
C++ Interface to calculate the remainder.
For integers, it returns the same output as modulus (% operator) For floating point numbers, it returns the same as std::remainder from <cmath>
| [in] | lhs | numerator; can be an array or a scalar | 
| [in] | rhs | denominator; can be an array or a scalar | 
C++ Interface to calculate the remainder.
For integers, it returns the same output as modulus (% operator) For floating point numbers, it returns the same as std::remainder from <cmath>
| [in] | lhs | numerator; can be an array or a scalar | 
| [in] | rhs | denominator; can be an array or a scalar |