Git Umzug

This commit is contained in:
Joachim Rupp
2020-08-03 14:46:25 +02:00
parent 10c76c7c96
commit 5d93e33fca
20 changed files with 1000762 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef FUNCTION3D_H
#define FUNCTION3D_H
#include "blitz/array.h"
#include <iostream> // ostream
// Abstract base class for a 3d function
// - can provide an element of the return vector (direction: x, y, z)
// - can prodvie whole vector
class Function3d {
public:
virtual ~Function3d() {};
virtual double getValue(double x, double y, double z, int cart_axis) const = 0;
virtual blitz::TinyVector<double ,3> getValue(double x, double y, double z) const = 0;
double getValue(const blitz::TinyVector<double, 3>& x, int cart_axis) const;
blitz::TinyVector<double, 3> getValue(const blitz::TinyVector<double, 3>& x) const;
friend std::ostream & operator << (std::ostream &out, const Function3d& function);
virtual void print(std::ostream &out) const;
};
#endif /* FUNCTION3D_H */