Implementing kernel
C++ engine symbols that back this Python API.Dot product of two 1-D tensors.
Computes the scalar inner product
Parameters
Returns
TensorScalar dot product.
Notes
Any other rank is refused with a ShapeMismatch (a RuntimeError);
inner, vecdot and matmul take those.
Examples
>>> import lucid
>>> from lucid.linalg import dot
>>> dot(lucid.tensor([1.0, 2.0, 3.0]), lucid.tensor([4.0, 5.0, 6.0]))
tensor(32.)