|
|
|||
File indexing completed on 2026-09-28 09:20:54
0001 // Copyright (c) 2025 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _MathUtils_GaussKronrodWeights_HeaderFile 0015 #define _MathUtils_GaussKronrodWeights_HeaderFile 0016 0017 //! @file MathUtils_GaussKronrodWeights.hxx 0018 //! Wrapper for accessing Gauss-Kronrod quadrature weights. 0019 //! This header isolates the old class math from the new namespace MathUtils. 0020 //! Implementation is in MathUtils_GaussKronrodWeights.cxx to avoid conflicts. 0021 0022 #include <Standard_Macro.hxx> 0023 #include <math_Vector.hxx> 0024 0025 //! Core utilities for modern math solvers. 0026 namespace MathUtils 0027 { 0028 0029 //! Get Gauss-Kronrod points and weights. 0030 //! @param theNbKronrod number of Kronrod points (should be 2n+1) 0031 //! @param thePoints output vector for points 0032 //! @param theWeights output vector for weights 0033 //! @return true if successful 0034 Standard_EXPORT bool GetKronrodPointsAndWeights(int theNbKronrod, 0035 math_Vector& thePoints, 0036 math_Vector& theWeights); 0037 0038 //! Get ordered Gauss points and weights. 0039 //! @param theNbGauss number of Gauss points 0040 //! @param thePoints output vector for points 0041 //! @param theWeights output vector for weights 0042 //! @return true if successful 0043 Standard_EXPORT bool GetOrderedGaussPointsAndWeights(int theNbGauss, 0044 math_Vector& thePoints, 0045 math_Vector& theWeights); 0046 0047 } // namespace MathUtils 0048 0049 #endif // _MathUtils_GaussKronrodWeights_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|