42cf5bc1 |
1 | // Created on: 1991-01-21 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1991-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _math_HeaderFile |
18 | #define _math_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Integer.hxx> |
25 | #include <math_Vector.hxx> |
26 | #include <Standard_Boolean.hxx> |
27 | class math_Matrix; |
28 | class math_Function; |
29 | class math_FunctionWithDerivative; |
30 | class math_MultipleVarFunction; |
31 | class math_MultipleVarFunctionWithGradient; |
32 | class math_MultipleVarFunctionWithHessian; |
33 | class math_FunctionSet; |
34 | class math_FunctionSetWithDerivatives; |
35 | class math_Gauss; |
36 | class math_GaussLeastSquare; |
37 | class math_SVD; |
38 | class math_DirectPolynomialRoots; |
39 | class math_FunctionRoots; |
40 | class math_BissecNewton; |
41 | class math_FunctionRoot; |
42 | class math_NewtonFunctionRoot; |
43 | class math_BracketedRoot; |
44 | class math_FunctionSetRoot; |
45 | class math_NewtonFunctionSetRoot; |
46 | class math_BracketMinimum; |
47 | class math_BrentMinimum; |
48 | class math_Powell; |
49 | class math_FRPR; |
50 | class math_BFGS; |
51 | class math_NewtonMinimum; |
52 | class math_Jacobi; |
53 | class math_GaussSingleIntegration; |
54 | class math_GaussMultipleIntegration; |
55 | class math_GaussSetIntegration; |
56 | class math_FunctionSample; |
57 | class math_FunctionAllRoots; |
58 | class math_Householder; |
59 | class math_Crout; |
60 | class math_Uzawa; |
61 | class math_TrigonometricFunctionRoots; |
62 | class math_KronrodSingleIntegration; |
63 | class math_EigenValuesSearcher; |
64 | class math_ComputeGaussPointsAndWeights; |
65 | class math_ComputeKronrodPointsAndWeights; |
66 | class math_DoubleTab; |
67 | |
68 | |
69 | |
70 | class math |
71 | { |
72 | public: |
73 | |
74 | DEFINE_STANDARD_ALLOC |
75 | |
76 | |
77 | Standard_EXPORT static Standard_Integer GaussPointsMax(); |
78 | |
79 | Standard_EXPORT static void GaussPoints (const Standard_Integer Index, math_Vector& Points); |
80 | |
81 | Standard_EXPORT static void GaussWeights (const Standard_Integer Index, math_Vector& Weights); |
82 | |
83 | //! Returns the maximal number of points for that the values |
84 | //! are stored in the table. If the number is greater then |
85 | //! KronrodPointsMax, the points will be computed. |
86 | Standard_EXPORT static Standard_Integer KronrodPointsMax(); |
87 | |
88 | //! Returns a vector of Gauss points and a vector of their weights. |
89 | //! The difference with the |
90 | //! method GaussPoints is the following: |
91 | //! - the points are returned in increasing order. |
92 | //! - if Index is greater then GaussPointsMax, the points are |
93 | //! computed. |
94 | //! Returns Standard_True if Index is positive, Points' and Weights' |
95 | //! length is equal to Index, Points and Weights are successfully computed. |
96 | Standard_EXPORT static Standard_Boolean OrderedGaussPointsAndWeights (const Standard_Integer Index, math_Vector& Points, math_Vector& Weights); |
97 | |
98 | //! Returns a vector of Kronrod points and a vector of their |
99 | //! weights for Gauss-Kronrod computation method. |
100 | //! Index should be odd and greater then or equal to 3, |
101 | //! as the number of Kronrod points is equal to 2*N + 1, |
102 | //! where N is a number of Gauss points. Points and Weights should |
103 | //! have the size equal to Index. Each even element of Points |
104 | //! represents a Gauss point value of N-th Gauss quadrature. |
105 | //! The values from Index equal to 3 to 123 are stored in a |
106 | //! table (see the file math_Kronrod.cxx). If Index is greater, |
107 | //! then points and weights will be computed. Returns Standard_True |
108 | //! if Index is odd, it is equal to the size of Points and Weights |
109 | //! and the computation of Points and Weights is performed successfully. |
110 | //! Otherwise this method returns Standard_False. |
111 | Standard_EXPORT static Standard_Boolean KronrodPointsAndWeights (const Standard_Integer Index, math_Vector& Points, math_Vector& Weights); |
112 | |
113 | |
114 | |
115 | |
116 | protected: |
117 | |
118 | |
119 | |
120 | |
121 | |
122 | private: |
123 | |
124 | |
125 | |
126 | |
127 | friend class math_Matrix; |
128 | friend class math_Function; |
129 | friend class math_FunctionWithDerivative; |
130 | friend class math_MultipleVarFunction; |
131 | friend class math_MultipleVarFunctionWithGradient; |
132 | friend class math_MultipleVarFunctionWithHessian; |
133 | friend class math_FunctionSet; |
134 | friend class math_FunctionSetWithDerivatives; |
135 | friend class math_Gauss; |
136 | friend class math_GaussLeastSquare; |
137 | friend class math_SVD; |
138 | friend class math_DirectPolynomialRoots; |
139 | friend class math_FunctionRoots; |
140 | friend class math_BissecNewton; |
141 | friend class math_FunctionRoot; |
142 | friend class math_NewtonFunctionRoot; |
143 | friend class math_BracketedRoot; |
144 | friend class math_FunctionSetRoot; |
145 | friend class math_NewtonFunctionSetRoot; |
146 | friend class math_BracketMinimum; |
147 | friend class math_BrentMinimum; |
148 | friend class math_Powell; |
149 | friend class math_FRPR; |
150 | friend class math_BFGS; |
151 | friend class math_NewtonMinimum; |
152 | friend class math_Jacobi; |
153 | friend class math_GaussSingleIntegration; |
154 | friend class math_GaussMultipleIntegration; |
155 | friend class math_GaussSetIntegration; |
156 | friend class math_FunctionSample; |
157 | friend class math_FunctionAllRoots; |
158 | friend class math_Householder; |
159 | friend class math_Crout; |
160 | friend class math_Uzawa; |
161 | friend class math_TrigonometricFunctionRoots; |
162 | friend class math_KronrodSingleIntegration; |
163 | friend class math_EigenValuesSearcher; |
164 | friend class math_ComputeGaussPointsAndWeights; |
165 | friend class math_ComputeKronrodPointsAndWeights; |
166 | friend class math_DoubleTab; |
167 | |
168 | }; |
169 | |
170 | |
171 | |
172 | |
173 | |
174 | |
175 | |
176 | #endif // _math_HeaderFile |