WaveSimPP
1.0
A C library for solving the wave equation and reconstructing the wave field
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
l
m
p
r
s
w
z
Functions
a
c
d
e
f
g
l
m
p
r
s
w
z
Classes
Class List
Class Index
Class Members
All
Functions
Files
File List
•
All
Classes
Namespaces
Functions
Modules
Pages
Loading...
Searching...
No Matches
src
CoreAlgorithm
wave.cpp
1
// Standard IO libraries
2
#include <iostream>
3
#include <fstream>
4
5
#include "CustomLibraries/np.hpp"
6
7
#include <math.h>
8
9
#include "solver.hpp"
10
#include "computational.hpp"
11
#include "coeff.hpp"
12
#include "source.hpp"
13
#include "helper_func.hpp"
14
15
int
main()
16
{
17
double
dx, dy, dz, dt;
18
dx = 1.0;
19
dy = 1.0;
20
dz = 1.0;
21
dt = 1.0;
22
std::vector<boost::multi_array<double, 4>> my_arrays =
np::gradient
(A, {dx, dy, dz, dt});
23
return
0;
24
}
np::gradient
::value constexpr std::vector< boost::multi_array< T, ND > > gradient(boost::multi_array< T, ND > inArray, std::initializer_list< T > args)
Definition:
np.hpp:90
Generated by
1.9.6