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
19
namespace
MathLib
20
{
21
25
template
<
unsigned
ORDER>
26
struct
GaussLegendre
{
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.
34
template
<>
35
double
const
GaussLegendre<1>::X
[1];
36
template
<>
37
double
const
GaussLegendre<1>::W
[1];
38
template
<>
39
double
const
GaussLegendre<2>::X
[2];
40
template
<>
41
double
const
GaussLegendre<2>::W
[2];
42
template
<>
43
double
const
GaussLegendre<3>::X
[3];
44
template
<>
45
double
const
GaussLegendre<3>::W
[3];
46
template
<>
47
double
const
GaussLegendre<4>::X
[4];
48
template
<>
49
double
const
GaussLegendre<4>::W
[4];
50
#endif
51
52
}
// namespace MathLib
WeightedSum.h
mathlib_export.h
MATHLIB_EXPORT
#define MATHLIB_EXPORT
Definition
mathlib_export.h:15
MathLib
Definition
CreateComponent.h:32
MathLib::GaussLegendre
Definition
GaussLegendre.h:26
MathLib::GaussLegendre::X
static MATHLIB_EXPORT const double X[Order]
Definition
GaussLegendre.h:28
MathLib::GaussLegendre::Order
static MATHLIB_EXPORT const unsigned Order
Definition
GaussLegendre.h:27
MathLib::GaussLegendre::W
static MATHLIB_EXPORT const double W[Order]
Definition
GaussLegendre.h:29
MathLib
Integration
GaussLegendre.h
Generated by
1.12.0