repl.txt (745B)
1 2 {{alias}}( x, y ) 3 Computes the dot product of two single-precision floating-point vectors. 4 5 If provided empty vectors, the function returns `0.0`. 6 7 Parameters 8 ---------- 9 x: ndarray 10 First input array whose underlying data type is 'float32'. 11 12 y: ndarray 13 Second input array whose underlying data type is 'float32'. 14 15 Returns 16 ------- 17 dot: number 18 The dot product. 19 20 Examples 21 -------- 22 > var x = {{alias:@stdlib/ndarray/array}}( new {{alias:@stdlib/array/float32}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] ) ); 23 > var y = {{alias:@stdlib/ndarray/array}}( new {{alias:@stdlib/array/float32}}( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ) ); 24 > {{alias}}( x, y ) 25 -5.0 26 27 See Also 28 -------- 29