|
Dot
Dot product of two vectors.
double vector::Dot(
|
Parameters
b
[in] Vector.
Return Value
Scalar.
Note
The dot product of two matrices is the matrix product matrix::MatMul().
A simple algorithm for the scalar product of vectors in MQL5:
double VectorDot(const vector& vector_a, const vector& vector_b)
|
MQL5 example:
for(ulong i=0; i<rows; i++)
|
Python example:
import numpy as np
|