|
|
|||
File indexing completed on 2026-09-18 09:21:02
0001 // Created on: 1991-01-21 0002 // Created by: Isabelle GRIGNON 0003 // Copyright (c) 1991-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _math_HeaderFile 0018 #define _math_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <math_Vector.hxx> 0025 0026 class math 0027 { 0028 public: 0029 DEFINE_STANDARD_ALLOC 0030 0031 Standard_EXPORT static int GaussPointsMax(); 0032 0033 Standard_EXPORT static void GaussPoints(const int Index, math_Vector& Points); 0034 0035 Standard_EXPORT static void GaussWeights(const int Index, math_Vector& Weights); 0036 0037 //! Returns the maximal number of points for that the values 0038 //! are stored in the table. If the number is greater then 0039 //! KronrodPointsMax, the points will be computed. 0040 Standard_EXPORT static int KronrodPointsMax(); 0041 0042 //! Returns a vector of Gauss points and a vector of their weights. 0043 //! The difference with the 0044 //! method GaussPoints is the following: 0045 //! - the points are returned in increasing order. 0046 //! - if Index is greater then GaussPointsMax, the points are 0047 //! computed. 0048 //! Returns true if Index is positive, Points' and Weights' 0049 //! length is equal to Index, Points and Weights are successfully computed. 0050 Standard_EXPORT static bool OrderedGaussPointsAndWeights(const int Index, 0051 math_Vector& Points, 0052 math_Vector& Weights); 0053 0054 //! Returns a vector of Kronrod points and a vector of their 0055 //! weights for Gauss-Kronrod computation method. 0056 //! Index should be odd and greater then or equal to 3, 0057 //! as the number of Kronrod points is equal to 2*N + 1, 0058 //! where N is a number of Gauss points. Points and Weights should 0059 //! have the size equal to Index. Each even element of Points 0060 //! represents a Gauss point value of N-th Gauss quadrature. 0061 //! The values from Index equal to 3 to 123 are stored in a 0062 //! table (see the file math_Kronrod.cxx). If Index is greater, 0063 //! then points and weights will be computed. Returns true 0064 //! if Index is odd, it is equal to the size of Points and Weights 0065 //! and the computation of Points and Weights is performed successfully. 0066 //! Otherwise this method returns false. 0067 Standard_EXPORT static bool KronrodPointsAndWeights(const int Index, 0068 math_Vector& Points, 0069 math_Vector& Weights); 0070 }; 0071 0072 #endif // _math_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|