Skip to content

Commit

Permalink
remove complex algorithmic
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Dec 20, 2020
1 parent f121bc2 commit 153ddb9
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 5,738 deletions.
54 changes: 0 additions & 54 deletions include/ruckig/wolfram.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include <complex>


namespace ruckig {

Expand All @@ -21,56 +19,4 @@ inline double Abs(double v) {
return std::abs(v);
}

inline std::complex<double> Complex(double a, double b) {
return std::complex<double>(a, b);
}

inline std::complex<double> SqrtComplex(double v) {
return std::sqrt(std::complex<double>(v, 0));
}

inline std::complex<double> SqrtComplex(std::complex<double> v) {
return std::sqrt(v);
}

inline std::complex<double> PowerComplex(std::complex<double> v, int e) {
return std::pow(v, e);
}

inline std::complex<double> PowerComplex(std::complex<double> v, double e) {
return std::pow(v, e);
}

inline long double PowerLong(long double v, int e) {
return std::pow(v, e);
}

inline long double PowerLong(long double v, double e) {
return std::pow(v, e);
}

inline long double SqrtLong(long double v) {
return std::sqrt(v);
}

inline long double AbsLong(long double v) {
return std::abs(v);
}

inline std::complex<long double> ComplexLong(long double a, double b) {
return std::complex<long double>(a, b);
}

inline std::complex<long double> SqrtComplexLong(long double v) {
return std::sqrt(std::complex<long double>(v, 0));
}

inline std::complex<long double> SqrtComplexLong(std::complex<long double> v) {
return std::sqrt(v);
}

inline std::complex<long double> PowerComplexLong(std::complex<long double> v, double e) {
return std::pow(v, e);
}

} // namespace ruckig
Loading

0 comments on commit 153ddb9

Please sign in to comment.