dot_1d_1d

mdhelper.algorithm.accelerated.dot_1d_1d(a: ndarray[float], b: ndarray[float]) float[source]

Serial Numba-accelerated dot product between two one-dimensional NumPy arrays \(\mathbf{a}\) and \(\mathbf{b}\), each with shape \((3,)\).

\[\mathbf{a}\cdot\mathbf{b}=a_1b_1+a_2b_2+a_3b_3\]
Parameters:
anp.ndarray

First vector \(\mathbf{a}\).

Shape: \((3,)\).

bnp.ndarray

Second vector \(\mathbf{b}\).

Shape: \((3,)\).

Returns:
abfloat

Dot product of the two vectors, \(\mathbf{a}\cdot\mathbf{b}\).