Ice Sheet System Model
4.18
Code documentation
src
c
shared
Numerics
cross.cpp
Go to the documentation of this file.
1
5
#ifdef HAVE_CONFIG_H
6
#include <config.h>
7
#else
8
#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9
#endif
10
11
#include "
./types.h
"
12
13
void
cross
(
IssmDouble
* result,
IssmDouble
* vector1,
IssmDouble
* vector2){
14
15
/*result,vector1 and vector2 are all assumed to be of size 3: */
16
17
result[0]=vector1[1]*vector2[2]-vector1[2]*vector2[1];
18
result[1]=vector1[2]*vector2[0]-vector1[0]*vector2[2];
19
result[2]=vector1[0]*vector2[1]-vector1[1]*vector2[0];
20
21
}
IssmDouble
double IssmDouble
Definition:
types.h:37
types.h
prototypes for types.h
cross
void cross(IssmDouble *result, IssmDouble *vector1, IssmDouble *vector2)
Definition:
cross.cpp:13
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19