|
My Project
|
|
Find the product of values in the input. More...
Functions | |
| AFAPI array | product (const array &in, const int dim=-1) |
| C++ Interface for product of elements in an array. | |
| AFAPI array | product (const array &in, const int dim, const double nanval) |
| C++ Interface for product of elements in an array while replacing nan values. | |
| template<typename T > | |
| T | product (const array &in) |
| C++ Interface for product of all elements in an array. | |
| template<typename T > | |
| T | product (const array &in, double nanval) |
| C++ Interface for product of all elements in an array while replacing nan values. | |
| AFAPI af_err | af_product (af_array *out, const af_array in, const int dim) |
| C Interface for product of elements in an array. | |
| AFAPI af_err | af_product_nan (af_array *out, const af_array in, const int dim, const double nanval) |
| C Interface for product of elements in an array while replacing nans. | |
| AFAPI af_err | af_product_all (double *real, double *imag, const af_array in) |
| C Interface for product of all elements in an array. | |
| AFAPI af_err | af_product_nan_all (double *real, double *imag, const af_array in, const double nanval) |
| C Interface for product of all elements in an array while replacing nans. | |
| AFAPI array | mul (const array &in, const int dim=-1) |
| C++ Interface for product of elements in an array. | |
| template<typename T > | |
| T | mul (const array &in) |
| C++ Interface for product of all elements in an array. | |
Find the product of values in the input.
This table defines the return value types for the corresponding input types
| Input Type | Output Type |
|---|---|
| f32, f64, c32, c64 | same as input |
| s32, u32, s64, u64 | same as input |
| s16 | s32 |
| u16, u8, b8 | u32 |
This function performs the operation across all batches present in the input simultaneously.
C Interface for product of elements in an array.
| [out] | out | will contain the product of all values in in along dim |
| [in] | in | is the input array |
| [in] | dim | The dimension along which the multiply operation occurs |
C Interface for product of all elements in an array.
| [out] | real | will contain the real part of multiplying all elements in input in |
| [out] | imag | will contain the imaginary part of multiplying all elements in input in |
| [in] | in | is the input array |
imag is always set to 0 when in is real | AFAPI af_err af_product_nan | ( | af_array * | out, |
| const af_array | in, | ||
| const int | dim, | ||
| const double | nanval | ||
| ) |
C Interface for product of elements in an array while replacing nans.
| [out] | out | will contain the product of all values in in along dim |
| [in] | in | is the input array |
| [in] | dim | The dimension along which the add operation occurs |
| [in] | nanval | Replace nans with the value passed to this function |
| AFAPI af_err af_product_nan_all | ( | double * | real, |
| double * | imag, | ||
| const af_array | in, | ||
| const double | nanval | ||
| ) |
C Interface for product of all elements in an array while replacing nans.
| [out] | real | will contain the real part of adding all elements in input in |
| [out] | imag | will contain the imaginary part of adding all elements in input in |
| [in] | in | is the input array |
| [in] | nanval | is the value which replaces nan |
imag is always set to 0 when in is real C++ Interface for product of all elements in an array.
| [in] | in | is the input array |
in C++ Interface for product of elements in an array.
| [in] | in | is the input array |
| [in] | dim | The dimension along which the multiply operation occurs |
dim dim is -1 by default. -1 denotes the first non-singleton dimension. C++ Interface for product of all elements in an array.
| [in] | in | is the input array |
in C++ Interface for product of elements in an array while replacing nan values.
| [in] | in | is the input array |
| [in] | dim | The dimension along which the add operation occurs |
| [in] | nanval | Replace nans with the value passed to this function |
dim C++ Interface for product of elements in an array.
| [in] | in | is the input array |
| [in] | dim | The dimension along which the multiply operation occurs |
dim dim is -1 by default. -1 denotes the first non-singleton dimension.