Mantid
Loading...
Searching...
No Matches
mathSupport.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidGeometry/DllConfig.h"
10#include "MantidKernel/Logger.h"
11#include <complex>
12#include <functional>
13#include <vector>
14
15namespace Mantid {
16
18template <typename InputIter>
19MANTID_GEOMETRY_DLL int solveQuadratic(InputIter, std::pair<std::complex<double>, std::complex<double>> &);
20
22template <typename InputIter>
23MANTID_GEOMETRY_DLL int solveCubic(InputIter, std::complex<double> &, std::complex<double> &, std::complex<double> &);
24
25namespace mathSupport {}
26} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
MANTID_GEOMETRY_DLL int solveCubic(InputIter, std::complex< double > &, std::complex< double > &, std::complex< double > &)
Solve a Cubic equation.
MANTID_GEOMETRY_DLL int solveQuadratic(InputIter, std::pair< std::complex< double >, std::complex< double > > &)
Solve a Quadratic equation.
Definition: mathSupport.cpp:23