Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:14

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 
0027 class math 
0028 {
0029 public:
0030 
0031   DEFINE_STANDARD_ALLOC
0032 
0033   
0034   Standard_EXPORT static Standard_Integer GaussPointsMax();
0035   
0036   Standard_EXPORT static void GaussPoints (const Standard_Integer Index, math_Vector& Points);
0037   
0038   Standard_EXPORT static void GaussWeights (const Standard_Integer Index, math_Vector& Weights);
0039   
0040   //! Returns the maximal number of points for that the values
0041   //! are stored in the table. If the number is greater then
0042   //! KronrodPointsMax, the points will be computed.
0043   Standard_EXPORT static Standard_Integer KronrodPointsMax();
0044   
0045   //! Returns a vector of Gauss points and a vector of their weights.
0046   //! The difference with the
0047   //! method GaussPoints is the following:
0048   //! - the points are returned in increasing order.
0049   //! - if Index is greater then GaussPointsMax, the points are
0050   //! computed.
0051   //! Returns Standard_True if Index is positive, Points' and Weights'
0052   //! length is equal to Index, Points and Weights are successfully computed.
0053   Standard_EXPORT static Standard_Boolean OrderedGaussPointsAndWeights (const Standard_Integer Index, math_Vector& Points, math_Vector& Weights);
0054   
0055   //! Returns a vector of Kronrod points and a vector of their
0056   //! weights for Gauss-Kronrod computation method.
0057   //! Index should be odd and greater then or equal to 3,
0058   //! as the number of Kronrod points is equal to 2*N + 1,
0059   //! where N is a number of Gauss points. Points and Weights should
0060   //! have the size equal to Index. Each even element of Points
0061   //! represents a Gauss point value of N-th Gauss quadrature.
0062   //! The values from Index equal to 3 to 123 are stored in a
0063   //! table (see the file math_Kronrod.cxx). If Index is greater,
0064   //! then points and weights will be computed. Returns Standard_True
0065   //! if Index is odd, it is equal to the size of Points and Weights
0066   //! and the computation of Points and Weights is performed successfully.
0067   //! Otherwise this method returns Standard_False.
0068   Standard_EXPORT static Standard_Boolean KronrodPointsAndWeights (const Standard_Integer Index, math_Vector& Points, math_Vector& Weights);
0069 
0070 };
0071 
0072 #endif // _math_HeaderFile