Compute the dot product. 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) |
| C++ Interface to compute the dot product. | |
| array | dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE) |
| 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) |
| C Interface to compute the dot product. | |
| 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) |
| C Interface to compute the dot product, scalar result returned on host. | |
Compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
| 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 ) |
C Interface to compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
| [out] | out | dot product of lhs and rhs |
| [in] | lhs | input array on the left-hand side |
| [in] | rhs | input array on the right-hand side |
| [in] | optLhs | lhs options, only AF_MAT_NONE and AF_MAT_CONJ are supported |
| [in] | optRhs | rhs options, only AF_MAT_NONE and AF_MAT_CONJ are supported |
| 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 ) |
C Interface to compute the dot product, scalar result returned on host.
Scalar dot product between two vectors. Also referred to as the inner product. Returns the result as a host scalar.
| [out] | real | real component of the dot product |
| [out] | imag | imaginary component of the dot product |
| [in] | lhs | input array on the left-hand side |
| [in] | rhs | input array on the right-hand side |
| [in] | optLhs | lhs options, only AF_MAT_NONE and AF_MAT_CONJ are supported |
| [in] | optRhs | rhs options, 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 ) |
C++ Interface to compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
Parameters optLhs and optRhs can only be one of AF_MAT_NONE or AF_MAT_CONJ. The conjugate dot product can be computed by setting optLhs = AF_MAT_CONJ and optRhs = AF_MAT_NONE.
This function is not supported in GFOR.
| T | type of the output |
| [in] | lhs | input array on the left-hand side |
| [in] | rhs | input array on the right-hand side |
| [in] | optLhs | lhs options, only AF_MAT_NONE and AF_MAT_CONJ are supported |
| [in] | optRhs | rhs options, only AF_MAT_NONE and AF_MAT_CONJ are supported |
lhs and rhs | array dot | ( | const array & | lhs, |
| const array & | rhs, | ||
| const matProp | optLhs = AF_MAT_NONE, | ||
| const matProp | optRhs = AF_MAT_NONE ) |