Bridge++
Ver. 2.0.2
epsilonTensor.h
Go to the documentation of this file.
1
14
#ifndef EPSILONTENSOR_INCLUDED
15
#define EPSILONTENSOR_INCLUDED
16
17
#include <vector>
18
20
28
/*
29
namespace EpsilonTensor
30
{
31
const int m_epsilon_3_index[][3] = {
32
{ 0, 1, 2 },
33
{ 1, 2, 0 },
34
{ 2, 0, 1 },
35
{ 2, 1, 0 },
36
{ 1, 0, 2 },
37
{ 0, 2, 1 },
38
};
39
40
const int m_epsilon_3_value[] = {
41
1,
42
1,
43
1,
44
-1,
45
-1,
46
-1,
47
};
48
}
49
*/
50
51
class
EpsilonTensor
52
{
53
// public:
54
// static const std::string class_name;
55
//
56
// protected:
57
// Bridge::VerboseLevel m_vl;
58
59
private
:
60
int
m_Nepsilon_3
;
61
int
m_Nepsilon_3_index
;
62
63
std::vector<std::vector<int> >
m_epsilon_3_index
;
64
std::vector<int>
m_epsilon_3_value
;
65
66
public
:
67
EpsilonTensor
()
68
{
69
init
();
70
}
71
72
virtual
~EpsilonTensor
() {}
73
74
private
:
75
// non-copyable
76
EpsilonTensor
(
const
EpsilonTensor
&);
77
EpsilonTensor
&
operator=
(
const
EpsilonTensor
&);
78
79
public
:
80
int
epsilon_3_index
(
const
int
n,
const
int
i)
const
;
81
int
epsilon_3_value
(
const
int
n)
const
;
82
83
private
:
84
void
init
();
85
};
86
#endif
EpsilonTensor::m_Nepsilon_3_index
int m_Nepsilon_3_index
Definition:
epsilonTensor.h:61
EpsilonTensor::m_epsilon_3_index
std::vector< std::vector< int > > m_epsilon_3_index
Definition:
epsilonTensor.h:63
EpsilonTensor::operator=
EpsilonTensor & operator=(const EpsilonTensor &)
EpsilonTensor
Epsilon tensor utility.
Definition:
epsilonTensor.h:51
EpsilonTensor::epsilon_3_value
int epsilon_3_value(const int n) const
Definition:
epsilonTensor.cpp:78
EpsilonTensor::EpsilonTensor
EpsilonTensor()
Definition:
epsilonTensor.h:67
EpsilonTensor::~EpsilonTensor
virtual ~EpsilonTensor()
Definition:
epsilonTensor.h:72
EpsilonTensor::epsilon_3_index
int epsilon_3_index(const int n, const int i) const
Definition:
epsilonTensor.cpp:64
EpsilonTensor::m_epsilon_3_value
std::vector< int > m_epsilon_3_value
Definition:
epsilonTensor.h:64
EpsilonTensor::m_Nepsilon_3
int m_Nepsilon_3
Definition:
epsilonTensor.h:60
EpsilonTensor::init
void init()
Definition:
epsilonTensor.cpp:20
src
lib
Tools
epsilonTensor.h
Generated on Sat Feb 10 2024 14:20:00 for Bridge++ by
1.8.17