|
The common base class for PolynomialRoots specializations for various N. More...
#include <SurgSim/Math/PolynomialRoots.h>
Public Member Functions | |
| bool | isDegenerate () const |
| int | getNumRoots () const |
| T | operator[] (int i) const |
| Read only access to the roots of the polynomial. More... | |
Static Public Attributes | |
| static const int | DEGENERATE = -1 |
| Indicator for a degenerate polynomial (infinite number of roots). More... | |
Protected Member Functions | |
| PolynomialRootsCommon () | |
| Constructor. Since the constructor must define the roots, only allow construction from a derived class. More... | |
Protected Attributes | |
| int | m_numRoots |
| The number of roots available for the polynomial, or DEGENERATE if there are infinite roots. More... | |
| std::array< T, N > | m_roots |
| An array of up to N roots for a degree N polynomial ordered ascendingly. More... | |
Private Member Functions | |
| PolynomialRootsCommon (const PolynomialRootsCommon &) | |
| PolynomialRootsCommon & | operator= (const PolynomialRootsCommon &) |
The common base class for PolynomialRoots specializations for various N.
| T | type of the coefficients and computations |
| N | degree of the polynomial for which roots are being calculated |
|
private |
Prohibit copying and assignment.
|
inlineprotected |
Constructor. Since the constructor must define the roots, only allow construction from a derived class.
| int SurgSim::Math::PolynomialRootsCommon< T, N >::getNumRoots | ( | ) | const |
| bool SurgSim::Math::PolynomialRootsCommon< T, N >::isDegenerate | ( | ) | const |
|
private |
Prohibit copying and assignment.
| T SurgSim::Math::PolynomialRootsCommon< T, N >::operator[] | ( | int | i | ) | const |
Read only access to the roots of the polynomial.
| i | is the number of the root to return |
| if | there is no root of rank i |
|
static |
Indicator for a degenerate polynomial (infinite number of roots).
|
protected |
The number of roots available for the polynomial, or DEGENERATE if there are infinite roots.
|
protected |
An array of up to N roots for a degree N polynomial ordered ascendingly.
1.8.13