pure-cpp 1.0.0
A C++ physics simulation benchmark comparing performance with Python implementations
space.cpp File Reference

Implementation of the n-body simulation space, handling physics and collisions. More...

#include "space.hpp"
#include <omp.h>
#include <Eigen/StdVector>
#include <QDebug>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <random>
#include "pcg_random.hpp"
Include dependency graph for space.cpp:

Go to the source code of this file.

Typedefs

using ProfilingClock = std::chrono::high_resolution_clock
 

Detailed Description

Implementation of the n-body simulation space, handling physics and collisions.

Author
Le Bars, Yoann

This file is part of the pure C++ benchmark.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Definition in file space.cpp.

Typedef Documentation

◆ ProfilingClock

using ProfilingClock = std::chrono::high_resolution_clock

Definition at line 37 of file space.cpp.