⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gauss.h

📁 The Spectral Toolkit is a C++ spectral transform library written by Rodney James and Chuck Panaccion
💻 H
字号:
//// spectral toolkit // copyright (c) 2005 university corporation for atmospheric research// licensed under the gnu general public license//#ifndef __gauss__#define __gauss__#include "spectral.h"namespace spectral{  /// Base class for Gaussian quadratures.  Includes common methods  /// and members for the Legendre and Lobatto quadratures.  class gauss  {    public:    gauss(int n);    ~gauss();    /// Gaussian point function.      /// \param i index from \f$ 0, \ldots, n-1 \f$    /// \return value of point at i    inline real point(int i) { return(points[i]); }    /// Gaussian weight function.      /// \param i index from \f$ 0, \ldots, n-1 \f$    /// \return value of weight at i    inline real weight(int i) { return(weights[i]); }  protected:    /// Internal machine precision used for iteration.  Set in constructor.    real eps;    /// Internal array to store Gaussian weights.    real *weights;    /// Internal array to store Gaussian points.    real *points;    /// Internal length (total).    int n;  };}#endif// Local Variables:// mode:C++// End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -