source: https://ubuntuforums.org/showthread.php?t=1740797

ddot is the dot product of two vectors/arrays
