Synopsis

void mth_AddVector(int ndim, double *a, double *b, double *r)

Purpose

Add two vectors.

Description

The vectors a and b will be added together and the result stored in r. The vector size is specified by ndim.

Input

ndim

Number of dimensions in vectors

a

First vector

b

Second vector

Output

r

Resulting vector