time-to-botec/js/node_modules/@stdlib/blas/ddot/docs/repl.txt

30 lines
745 B
Plaintext
Raw Normal View History

{{alias}}( x, y )
Computes the dot product of two double-precision floating-point vectors.
If provided empty vectors, the function returns `0.0`.
Parameters
----------
x: ndarray
First input array whose underlying data type is 'float64'.
y: ndarray
Second input array whose underlying data type is 'float64'.
Returns
-------
dot: number
The dot product.
Examples
--------
> var x = {{alias:@stdlib/ndarray/array}}( new {{alias:@stdlib/array/float64}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] ) );
> var y = {{alias:@stdlib/ndarray/array}}( new {{alias:@stdlib/array/float64}}( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ) );
> {{alias}}( x, y )
-5.0
See Also
--------