Calculate the dot product of a vector. More...
Functions | |
template<typename T > | |
T | dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE) |
Dot Product. | |
AFAPI array | dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE) |
AFAPI af_err | af_dot (af_array *out, const af_array lhs, const af_array rhs, const af_mat_prop optLhs, const af_mat_prop optRhs) |
Scalar dot product between two vectors. | |
AFAPI af_err | af_dot_all (double *real, double *imag, const af_array lhs, const af_array rhs, const af_mat_prop optLhs, const af_mat_prop optRhs) |
Scalar dot product between two vectors. | |
Calculate the dot product of a vector.
Scalar dot product between two vectors. Also referred to as the inner product.
AFAPI af_err af_dot | ( | af_array * | out, |
const af_array | lhs, | ||
const af_array | rhs, | ||
const af_mat_prop | optLhs, | ||
const af_mat_prop | optRhs | ||
) |
Scalar dot product between two vectors.
Also referred to as the inner product.
[out] | out | The array object with the result of the dot operation |
[in] | lhs | The array object on the left hand side |
[in] | rhs | The array object on the right hand side |
[in] | optLhs | Options for lhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported. |
[in] | optRhs | Options for rhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported |
AFAPI af_err af_dot_all | ( | double * | real, |
double * | imag, | ||
const af_array | lhs, | ||
const af_array | rhs, | ||
const af_mat_prop | optLhs, | ||
const af_mat_prop | optRhs | ||
) |
Scalar dot product between two vectors.
Also referred to as the inner product. Returns the result as a host scalar.
[out] | real | is the real component of the result of dot operation |
[out] | imag | is the imaginary component of the result of dot operation |
[in] | lhs | The array object on the left hand side |
[in] | rhs | The array object on the right hand side |
[in] | optLhs | Options for lhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported. |
[in] | optRhs | Options for rhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported |
T dot | ( | const array & | lhs, |
const array & | rhs, | ||
const matProp | optLhs = AF_MAT_NONE , |
||
const matProp | optRhs = AF_MAT_NONE |
||
) |
Dot Product.
Scalar dot product between two vectors. Also referred to as the inner product.
T | The type of the output |
[in] | lhs | The array object on the left hand side |
[in] | rhs | The array object on the right hand side |
[in] | optLhs | Options for lhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported. |
[in] | optRhs | Options for rhs. Currently only AF_MAT_NONE and AF_MAT_CONJ are supported |
AFAPI array dot | ( | const array & | lhs, |
const array & | rhs, | ||
const matProp | optLhs = AF_MAT_NONE , |
||
const matProp | optRhs = AF_MAT_NONE |
||
) |