void vec_dot(double *v1, double *v2, double *result, const int len)
Performs dot product of v1 and v2.
void vec_mul(const double scalar, double *v, double *result, const int len)
Multiplies the vector v by scalar.
void vec_add(double *v1, double *v2, double *result, const int len)
Adds two vectors into a third one.