OGS
GaussLegendre.h
Go to the documentation of this file.
1
13#pragma once
14
15#include "mathlib_export.h"
16
17#include "WeightedSum.h"
18
19namespace MathLib
20{
21
25template <unsigned ORDER>
27 static MATHLIB_EXPORT const unsigned Order = ORDER;
28 static MATHLIB_EXPORT const double X[Order];
29 static MATHLIB_EXPORT const double W[Order];
30};
31
32#ifndef _MSC_VER // The following explicit instantatiation declaration does not
33 // compile on that particular compiler.
34template <>
35double const GaussLegendre<1>::X[1];
36template <>
37double const GaussLegendre<1>::W[1];
38template <>
39double const GaussLegendre<2>::X[2];
40template <>
41double const GaussLegendre<2>::W[2];
42template <>
43double const GaussLegendre<3>::X[3];
44template <>
45double const GaussLegendre<3>::W[3];
46template <>
47double const GaussLegendre<4>::X[4];
48template <>
49double const GaussLegendre<4>::W[4];
50#endif
51
52} // namespace MathLib
#define MATHLIB_EXPORT
static MATHLIB_EXPORT const double X[Order]
static MATHLIB_EXPORT const unsigned Order
static MATHLIB_EXPORT const double W[Order]