Compute the dot product. More...
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. More...Compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
◆ af_dot()C Interface to compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
array x = randu(100), y = randu(100);
print(dot<float>(x,y));
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
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.
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
C++ Interface to compute the dot product.
Scalar dot product between two vectors, also referred to as the inner product.
printf("%f\n", dot<float>(x, y));
A multi dimensional data container.
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.
AFAPI array randu(const dim4 &dims, const dtype ty, randomEngine &r)
C++ Interface to create an array of random numbers uniformly distributed.
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.
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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4