Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
Lattices
LatticeGCD.h
Go to the documentation of this file.
1
/* This file is part of PIL, the Particle Interaction Library.
2
*
3
*
4
* MODEL is distributed without any warranty under the
5
* GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6
*/
7
8
#ifndef model_LatticeGCD_h_
9
#define model_LatticeGCD_h_
10
11
#include <Eigen/Dense>
12
13
namespace
model
14
{
15
template
<
int
dim>
16
struct
LatticeGCD
17
{
18
19
typedef
Eigen::Matrix<long int,dim,1>
VectorDimI
;
20
21
22
/**********************************************************************/
23
static
long
int
gcd
(
const
long
int
&
a
,
const
long
int
&
b
);
24
25
/**********************************************************************/
26
static
long
int
gcd
(
const
long
int
&
a
,
const
long
int
&
b
,
const
long
int
&
c
);
27
28
/**********************************************************************/
29
static
long
int
gcd
(
const
VectorDimI
&
v
);
30
};
31
32
}
// end namespace
33
#endif
c
c
Definition
int_R.m:15
a
a
Definition
int_R.m:14
b
b
Definition
int_R.m:16
model
Definition
DD_converter.dox:2
model::LatticeGCD
Definition
LatticeGCD.h:17
model::LatticeGCD::gcd
static long int gcd(const long int &a, const long int &b)
Definition
LatticeGCD.cpp:18
model::LatticeGCD::VectorDimI
Eigen::Matrix< long int, dim, 1 > VectorDimI
Definition
LatticeGCD.h:19
v
REAL v[4]
Definition
triangle.cpp:5345
Generated by
1.15.0