A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrayfire.org/docs/group__blas__func__dot.htm below:

ArrayFire: dot

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...
  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)   C Interface to compute the dot product. More...
  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)   C Interface to compute the dot product, scalar result returned on host. 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));

Parameters
[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
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_dot_all()

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.

Parameters
[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
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ dot() [1/2]

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.

Template Parameters
Parameters
[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
Returns
dot product of lhs and rhs
◆ dot() [2/2]

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