OGS
GaussLegendre.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include "
mathlib_export.h
"
7
8
#include "
WeightedSum.h
"
9
10
namespace
MathLib
11
{
12
16
template
<
unsigned
ORDER>
17
struct
GaussLegendre
{
18
static
MATHLIB_EXPORT
const
unsigned
Order
= ORDER;
19
static
MATHLIB_EXPORT
const
double
X
[
Order
];
20
static
MATHLIB_EXPORT
const
double
W
[
Order
];
21
};
22
23
#ifndef _MSC_VER
// The following explicit instantatiation declaration does not
24
// compile on that particular compiler.
25
template
<>
26
double
const
GaussLegendre<1>::X
[1];
27
template
<>
28
double
const
GaussLegendre<1>::W
[1];
29
template
<>
30
double
const
GaussLegendre<2>::X
[2];
31
template
<>
32
double
const
GaussLegendre<2>::W
[2];
33
template
<>
34
double
const
GaussLegendre<3>::X
[3];
35
template
<>
36
double
const
GaussLegendre<3>::W
[3];
37
template
<>
38
double
const
GaussLegendre<4>::X
[4];
39
template
<>
40
double
const
GaussLegendre<4>::W
[4];
41
#endif
42
43
}
// namespace MathLib
WeightedSum.h
mathlib_export.h
MATHLIB_EXPORT
#define MATHLIB_EXPORT
Definition
mathlib_export.h:15
MathLib
Definition
CreateComponent.h:23
MathLib::GaussLegendre
Definition
GaussLegendre.h:17
MathLib::GaussLegendre::X
static MATHLIB_EXPORT const double X[Order]
Definition
GaussLegendre.h:19
MathLib::GaussLegendre::Order
static MATHLIB_EXPORT const unsigned Order
Definition
GaussLegendre.h:18
MathLib::GaussLegendre::W
static MATHLIB_EXPORT const double W[Order]
Definition
GaussLegendre.h:20
MathLib
Integration
GaussLegendre.h
Generated by
1.14.0