WaveSimPP 1.0
A C library for solving the wave equation and reconstructing the wave field
All Classes Namespaces Functions Modules Pages
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
15int 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}
::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