Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_POLYNOMIALROOTFINDER_H_
2 #define SimTK_SimTKCOMMON_POLYNOMIALROOTFINDER_H_
67 static void findRoots(
const Vec<3,T>& coefficients,
Vec<2,complex<T> >& roots);
75 static void findRoots(
const Vec<3,complex<T> >& coefficients,
Vec<2,complex<T> >& roots);
83 static void findRoots(
const Vec<4,T>& coefficients,
Vec<3,complex<T> >& roots);
91 static void findRoots(
const Vec<4,complex<T> >& coefficients,
Vec<3,complex<T> >& roots);
99 static void findRoots(
const Vector_<T>& coefficients,
Vector_<complex<T> >& roots);
107 static void findRoots(
const Vector_<complex<T> >& coefficients,
Vector_<complex<T> >& roots);
119 setMessage(
"Attempting to find roots of a polynomial whose leading coefficient is 0.");
126 #endif // SimTK_SimTKCOMMON_POLYNOMIALROOTFINDER_H_
Definition: Exception.h:46
Base(const char *fn="<UNKNOWN>", int ln=0)
Definition: Exception.h:48
virtual ~ZeroLeadingCoefficient()
Definition: PolynomialRootFinder.h:121
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
This class provides static methods for finding the roots of polynomials.
Definition: PolynomialRootFinder.h:57
This is a fixed-length column vector designed for no-overhead inline computation.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:618
This is an exception which is thrown by all of the PolynomialRootFinder::findRoots() methods.
Definition: PolynomialRootFinder.h:116
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
void setMessage(const std::string &msgin)
Definition: Exception.h:57
ZeroLeadingCoefficient(const char *fn, int ln)
Definition: PolynomialRootFinder.h:118