File indexing completed on 2025-01-18 10:04:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _PLib_HermitJacobi_HeaderFile
0018 #define _PLib_HermitJacobi_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <math_Matrix.hxx>
0024 #include <TColStd_Array1OfReal.hxx>
0025 #include <PLib_Base.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <GeomAbs_Shape.hxx>
0028 class PLib_JacobiPolynomial;
0029
0030
0031 class PLib_HermitJacobi;
0032 DEFINE_STANDARD_HANDLE(PLib_HermitJacobi, PLib_Base)
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065 class PLib_HermitJacobi : public PLib_Base
0066 {
0067
0068 public:
0069
0070
0071
0072
0073
0074
0075
0076
0077 Standard_EXPORT PLib_HermitJacobi(const Standard_Integer WorkDegree, const GeomAbs_Shape ConstraintOrder);
0078
0079
0080
0081
0082
0083 Standard_EXPORT Standard_Real MaxError (const Standard_Integer Dimension, Standard_Real& HermJacCoeff, const Standard_Integer NewDegree) const;
0084
0085
0086
0087
0088
0089
0090
0091 Standard_EXPORT void ReduceDegree (const Standard_Integer Dimension, const Standard_Integer MaxDegree, const Standard_Real Tol, Standard_Real& HermJacCoeff, Standard_Integer& NewDegree, Standard_Real& MaxError) const Standard_OVERRIDE;
0092
0093 Standard_EXPORT Standard_Real AverageError (const Standard_Integer Dimension, Standard_Real& HermJacCoeff, const Standard_Integer NewDegree) const;
0094
0095
0096
0097 Standard_EXPORT void ToCoefficients (const Standard_Integer Dimension, const Standard_Integer Degree, const TColStd_Array1OfReal& HermJacCoeff, TColStd_Array1OfReal& Coefficients) const Standard_OVERRIDE;
0098
0099
0100 Standard_EXPORT void D0 (const Standard_Real U, TColStd_Array1OfReal& BasisValue) Standard_OVERRIDE;
0101
0102
0103
0104 Standard_EXPORT void D1 (const Standard_Real U, TColStd_Array1OfReal& BasisValue, TColStd_Array1OfReal& BasisD1) Standard_OVERRIDE;
0105
0106
0107
0108 Standard_EXPORT void D2 (const Standard_Real U, TColStd_Array1OfReal& BasisValue, TColStd_Array1OfReal& BasisD1, TColStd_Array1OfReal& BasisD2) Standard_OVERRIDE;
0109
0110
0111
0112 Standard_EXPORT void D3 (const Standard_Real U, TColStd_Array1OfReal& BasisValue, TColStd_Array1OfReal& BasisD1, TColStd_Array1OfReal& BasisD2, TColStd_Array1OfReal& BasisD3) Standard_OVERRIDE;
0113
0114
0115 Standard_Integer WorkDegree() const Standard_OVERRIDE;
0116
0117
0118 Standard_Integer NivConstr() const;
0119
0120
0121
0122
0123 DEFINE_STANDARD_RTTIEXT(PLib_HermitJacobi,PLib_Base)
0124
0125 protected:
0126
0127
0128
0129
0130 private:
0131
0132
0133
0134
0135 Standard_EXPORT void D0123 (const Standard_Integer NDerive, const Standard_Real U, TColStd_Array1OfReal& BasisValue, TColStd_Array1OfReal& BasisD1, TColStd_Array1OfReal& BasisD2, TColStd_Array1OfReal& BasisD3);
0136
0137 math_Matrix myH;
0138 Handle(PLib_JacobiPolynomial) myJacobi;
0139 TColStd_Array1OfReal myWCoeff;
0140
0141
0142 };
0143
0144
0145 #include <PLib_HermitJacobi.lxx>
0146
0147
0148
0149
0150
0151 #endif