9#include "MantidGeometry/DllConfig.h"
37 int solveQuadratic(std::complex<double> &, std::complex<double> &)
const;
38 int solveCubic(std::complex<double> &, std::complex<double> &, std::complex<double> &)
const;
45 void setDegree(
int const);
46 int getDegree()
const;
47 operator const std::vector<double> &()
const;
48 operator std::vector<double> &();
49 double operator[](
int const)
const;
50 double &operator[](
int const);
53 double operator()(
double const)
const;
87 void compress(
double const);
91 std::vector<double> realRoots(
double const = -1.0);
92 std::vector<std::complex<double>> calcRoots(
double const = -1.0);
94 void write(std::ostream &)
const;
Holds a polynominal as a primary type.
std::vector< double > afCoeff
Coefficients.
double Eaccuracy
Polynomic accuracy.
int iDegree
Degree of polynomial [0 == constant].
MatrixWorkspace_sptr MANTID_API_DLL operator*(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Multiply two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator/=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Divide two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator+=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Adds two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator-=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Subtracts two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator-(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Subtracts two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator*=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Multiply two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator/(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Divide two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator+(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Adds two workspaces.
std::ostream & operator<<(std::ostream &, const PolyBase &)
External Friend :: outputs point to a stream.
PolyBase operator*(double const, const PolyBase &)
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.