Open CASCADE Technology  7.4.0
Static Public Member Functions

math Class Reference

#include <math.hxx>

Static Public Member Functions

static Standard_Integer GaussPointsMax ()
 
static void GaussPoints (const Standard_Integer Index, math_Vector &Points)
 
static void GaussWeights (const Standard_Integer Index, math_Vector &Weights)
 
static Standard_Integer KronrodPointsMax ()
 Returns the maximal number of points for that the values are stored in the table. If the number is greater then KronrodPointsMax, the points will be computed. More...
 
static Standard_Boolean OrderedGaussPointsAndWeights (const Standard_Integer Index, math_Vector &Points, math_Vector &Weights)
 Returns a vector of Gauss points and a vector of their weights. The difference with the method GaussPoints is the following: More...
 
static Standard_Boolean KronrodPointsAndWeights (const Standard_Integer Index, math_Vector &Points, math_Vector &Weights)
 Returns a vector of Kronrod points and a vector of their weights for Gauss-Kronrod computation method. Index should be odd and greater then or equal to 3, as the number of Kronrod points is equal to 2*N + 1, where N is a number of Gauss points. Points and Weights should have the size equal to Index. Each even element of Points represents a Gauss point value of N-th Gauss quadrature. The values from Index equal to 3 to 123 are stored in a table (see the file math_Kronrod.cxx). If Index is greater, then points and weights will be computed. Returns Standard_True if Index is odd, it is equal to the size of Points and Weights and the computation of Points and Weights is performed successfully. Otherwise this method returns Standard_False. More...
 

Member Function Documentation

◆ GaussPoints()

static void math::GaussPoints ( const Standard_Integer  Index,
math_Vector Points 
)
static

◆ GaussPointsMax()

static Standard_Integer math::GaussPointsMax ( )
static

◆ GaussWeights()

static void math::GaussWeights ( const Standard_Integer  Index,
math_Vector Weights 
)
static

◆ KronrodPointsAndWeights()

static Standard_Boolean math::KronrodPointsAndWeights ( const Standard_Integer  Index,
math_Vector Points,
math_Vector Weights 
)
static

Returns a vector of Kronrod points and a vector of their weights for Gauss-Kronrod computation method. Index should be odd and greater then or equal to 3, as the number of Kronrod points is equal to 2*N + 1, where N is a number of Gauss points. Points and Weights should have the size equal to Index. Each even element of Points represents a Gauss point value of N-th Gauss quadrature. The values from Index equal to 3 to 123 are stored in a table (see the file math_Kronrod.cxx). If Index is greater, then points and weights will be computed. Returns Standard_True if Index is odd, it is equal to the size of Points and Weights and the computation of Points and Weights is performed successfully. Otherwise this method returns Standard_False.

◆ KronrodPointsMax()

static Standard_Integer math::KronrodPointsMax ( )
static

Returns the maximal number of points for that the values are stored in the table. If the number is greater then KronrodPointsMax, the points will be computed.

◆ OrderedGaussPointsAndWeights()

static Standard_Boolean math::OrderedGaussPointsAndWeights ( const Standard_Integer  Index,
math_Vector Points,
math_Vector Weights 
)
static

Returns a vector of Gauss points and a vector of their weights. The difference with the method GaussPoints is the following:

  • the points are returned in increasing order.
  • if Index is greater then GaussPointsMax, the points are computed. Returns Standard_True if Index is positive, Points' and Weights' length is equal to Index, Points and Weights are successfully computed.

The documentation for this class was generated from the following file: