6#include "Containers/Array.h"
16template<
typename RealType,
int32 PolynomialDegree>
19 static_assert(
PolynomialDegree >= 2,
"PolynomialDegree must be 2 or higher");
66 RealType
Value = Coeffs[Degree];
180 RealType SearchEnd =
CurEnd;
#define checkSlow(expr)
Definition AssertionMacros.h:332
#define ensure( InExpression)
Definition AssertionMacros.h:464
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_SMALL_NUMBER
Definition UnrealMathUtility.h:130
Definition ArrayView.h:139
Definition StaticArray.h:26
Definition PolynomialRootSolver.h:18
TPolynomialRootSolver()=default
TArray< RealType, TInlineAllocator< PolynomialDegree > > Roots
Definition PolynomialRootSolver.h:22
int32 FindRootsInRange(TArrayView< const RealType > PolyCoeffs, RealType RangeStart, RealType RangeEnd, RealType Tolerance=(RealType) UE_SMALL_NUMBER, int32 MaxNewtonIterations=20, RealType NearRootTolerance=(RealType) UE_SMALL_NUMBER)
Definition PolynomialRootSolver.h:53
TPolynomialRootSolver(TArrayView< const RealType > PolyCoeffs, RealType RangeStart, RealType RangeEnd, RealType Tolerance=(RealType) UE_SMALL_NUMBER, int32 MaxNewtonIterations=20, RealType NearRootTolerance=(RealType) UE_SMALL_NUMBER)
Definition PolynomialRootSolver.h:36