Use quadric solver from ACM TOMS 46(2), pp1-28 (algorithm 1010)

This commit is contained in:
Paul Romano 2021-12-20 09:28:21 -05:00
parent b557e62b5d
commit 377ee77486
5 changed files with 732 additions and 243 deletions

View file

@ -0,0 +1,10 @@
#ifndef OPENMC_EXTERNAL_QUARTIC_SOLVER_H
#define OPENMC_EXTERNAL_QUARTIC_SOLVER_H
#include <complex>
extern "C" {
void oqs_quartic_solver(double coeff[5], std::complex<double> roots[4]);
}
#endif // OPENMC_EXTERNAL_QUARTIC_SOLVER_H