gaussquadrature.h
来自「Dolfin provide a high-performance linear」· C头文件 代码 · 共 42 行
H
42 行
// Copyright (C) 2003-2005 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2003-06-03// Last changed: 2005-12-09#ifndef __GAUSS_QUADRATURE_H#define __GAUSS_QUADRATURE_H#include <dolfin/dolfin_log.h>#include <dolfin/GaussianQuadrature.h>namespace dolfin{ /// Gauss (Gauss-Legendre) quadrature on the interval [-1,1]. /// The n quadrature points are given by the zeros of the /// n:th Legendre Pn(x). /// /// The quadrature points are computed using Newton's method, and /// the quadrature weights are computed by solving a linear system /// determined by the condition that Gauss quadrature with n points /// should be exact for polynomials of degree 2n-1. class GaussQuadrature : public GaussianQuadrature { public: GaussQuadrature(unsigned int n); void disp() const; private: void computePoints(); }; }#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?