Function symmetry::symm_dot

Function Documentation

auto symmetry::symm_dot(const double *a, const double *b, int n) -> double

Computes the dot product of two vectors.

Calculates the scalar (dot) product of two n-dimensional vectors.

Parameters:
  • a – First vector

  • b – Second vector

  • n – Dimension of the vectors

Returns:

Dot product value