eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
mass.h
Go to the documentation of this file.
1
/*
2
* SimQA: Copyright (C) Jakob Schiotz 1996, 1997
3
*
4
* IBM POWER2 optimized vector library:
5
* Vectorized mathematica functions from the IBM mass library.
6
*/
7
8
#include <cmath>
9
10
inline
void
vsqrt
(
double
res[],
const
double
a[],
const
int
*n) {
11
int
nn = *n;
12
for
(
int
i = 0; i < nn; i++)
13
res[i] = sqrt(a[i]);
14
}
15
16
inline
void
vexp
(
double
res[],
const
double
a[],
const
int
*n) {
17
int
nn = *n;
18
for
(
int
i = 0; i < nn; i++)
19
res[i] = exp(a[i]);
20
}
21
22
inline
void
vrec
(
double
res[],
const
double
a[],
const
int
*n) {
23
int
nn = *n;
24
for
(
int
i = 0; i < nn; i++)
25
res[i] = 1.0 / a[i];
26
}
27
28
inline
void
vlog
(
double
res[],
const
double
a[],
const
int
*n) {
29
int
nn = *n;
30
for
(
int
i = 0; i < nn; i++)
31
res[i] = log(a[i]);
32
}
vexp
void vexp(double res[], const double a[], const int *n)
Definition
mass.h:16
vrec
void vrec(double res[], const double a[], const int *n)
Definition
mass.h:22
vlog
void vlog(double res[], const double a[], const int *n)
Definition
mass.h:28
vsqrt
void vsqrt(double res[], const double a[], const int *n)
Definition
mass.h:10
include
eon
potentials
EMT
Asap
mass.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf