AcouSTO  version 2.0
math.c File Reference
#include <math.h>
#include "../acousto.h"
Include dependency graph for math.c:

Go to the source code of this file.

Functions

DOUBLE vec_dot (const struct vector v1, const struct vector v2)
 
void vec_diff (struct vector *vdest, const struct vector v1, const struct vector v2)
 
void vec_sum (struct vector *vdest, const struct vector v1, const struct vector v2)
 
void vec_cross (struct vector *vdest, const struct vector v1, const struct vector v2)
 
DOUBLE vec_mod_square (struct vector v)
 
DOUBLE vec_mod (struct vector v)
 
void vec_normalize (struct vector *v)
 
void vec_zero (struct vector *v)
 
void vec_copy (struct vector *vdest, const struct vector vsrc)
 
void vec_scale (struct vector *v, DOUBLE d)
 
void vec_mul (struct vector *vdest, const struct vector v, DOUBLE d)
 
void j13 (int i123, int n1, int n2, int *i1, int *i2, int *i3)
 
int j21 (int i1, int i2, int n1)
 
void j12 (int i12, int n1, int *i1, int *i2)
 
int j31 (int i1, int i2, int i3, int n1, int n2)
 
void calculate_bounds (int _rank, int _nelmb, int _size, int *nstart, int *nend)
 
void vec_rotate (struct vector *v, DOUBLE phi, DOUBLE theta, DOUBLE psi)
 
void vec_rotate2 (struct vector *x1, struct vector *nu, struct vector *x0, DOUBLE theta)
 

Detailed Description

Math auxiliary functions.

Definition in file math.c.