Synopsis

double mth_DotVector(int ndim, double *a, double *b)

Purpose

Compute dot product of two vectors.

Description

The dot product of vectors a and b will be computed and the scalar result returned.

Input

ndim

Number of dimensions in vectors

a

First vector

b

Second vector

Return

Resulting scalar product