ASL
0.1.7
Advanced Simulation Library
src
math
aslProbeTemplates.h
Go to the documentation of this file.
1
/*
2
* Advanced Simulation Library <http://asl.org.il>
3
*
4
* Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5
*
6
*
7
* This file is part of Advanced Simulation Library (ASL).
8
*
9
* ASL is free software: you can redistribute it and/or modify it
10
* under the terms of the GNU Affero General Public License as
11
* published by the Free Software Foundation, version 3 of the License.
12
*
13
* ASL is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Affero General Public License for more details.
17
*
18
* You should have received a copy of the GNU Affero General Public License
19
* along with ASL. If not, see <http://www.gnu.org/licenses/>.
20
*
21
*/
22
23
24
#ifndef ASLPROBETEMPLATES_H
25
#define ASLPROBETEMPLATES_H
26
27
#include "
aslVectors.h
"
28
29
namespace
asl
{
30
31
32
class
ProbeTemplate
33
{
34
public
:
35
std::vector<AVec<double> >
vectors
;
36
ProbeTemplate
(
int
n,
AVec<double>
* vec);
37
38
inline
unsigned
int
numberOfDimentions
()
const
;
39
};
40
41
43
48
extern
ProbeTemplate
probeD1q2
;
49
50
52
57
extern
ProbeTemplate
probeD2q3
;
58
60
65
extern
ProbeTemplate
probeD3q4
;
66
67
69
71
inline
const
ProbeTemplate
*
allMinimalProbeTemplate
(
unsigned
int
dimNumber);
72
73
// ----------------------------- Implementation -------------------------
74
75
unsigned
int
ProbeTemplate::numberOfDimentions
()
const
76
{
77
return
vectors
[0].getSize();
78
}
79
80
inline
const
ProbeTemplate
*
minimalProbeTemplate
(
unsigned
int
dimNumber)
81
{
82
static
ProbeTemplate
* vt[3]={&
probeD1q2
,&
probeD2q3
,&
probeD3q4
};
83
return
vt[dimNumber-1];
84
}
85
86
}
// asl
87
88
#endif // TEMPL_H_INCLUDED
asl::ProbeTemplate::vectors
std::vector< AVec< double > > vectors
Definition:
aslProbeTemplates.h:35
asl::ProbeTemplate::numberOfDimentions
unsigned int numberOfDimentions() const
Definition:
aslProbeTemplates.h:75
asl::probeD2q3
ProbeTemplate probeD2q3
A triangular probe 2D space.
asl::ProbeTemplate::ProbeTemplate
ProbeTemplate(int n, AVec< double > *vec)
asl::probeD1q2
ProbeTemplate probeD1q2
A triangular probe 1D space.
asl::minimalProbeTemplate
const ProbeTemplate * minimalProbeTemplate(unsigned int dimNumber)
Definition:
aslProbeTemplates.h:80
asl::ProbeTemplate
Definition:
aslProbeTemplates.h:32
aslVectors.h
asl::allMinimalProbeTemplate
const ProbeTemplate * allMinimalProbeTemplate(unsigned int dimNumber)
returns template corresponding to minimal probes
asl::probeD3q4
ProbeTemplate probeD3q4
A triangular probe 3D space.
asl::AVec< double >
asl
Advanced Simulation Library.
Definition:
aslDataInc.h:30
Generated by
1.8.16