|
|
Calculate the dot product of a vector. More...
Functions | |
| AFAPI array | dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE) |
| Dot Product. More... | |
| 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. More... | |
Calculate the dot product of a vector.
Scalar dot product between two vectors. Also referred to as the inner product.
This function returns the scalar product of two equal sized vectors or between a matrix and a vector. The second operand needs to be a vector in either case.
| 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 | ||
| ) |
| AFAPI array af::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.
| [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 |