Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
Lattices_NEW
Lattices_NEW/LatticeDirection.cpp
Go to the documentation of this file.
1
/* This file is part of model.
2
*
3
* MoDELib is distributed without any warranty under the MIT License.
4
*/
5
6
7
#ifndef model_LatticeDirection_cpp_
8
#define model_LatticeDirection_cpp_
9
10
#include <LatticeModule.h>
11
namespace
model
12
{
13
14
15
template
<
int
dim>
16
LatticeDirection<dim>::LatticeDirection
(
const
LatticeVector<dim>
&
v
) :
17
/* base init */
LatticeVector
<
dim
>(((
v
.squaredNorm()==0)?
v
: (
v
/
IntegerMath
<
IntScalarType
>::gcd(
v
)).
eval
()),
v
.
lattice
)
18
{
19
}
20
21
22
23
template
class
LatticeDirection<1>;
24
template
class
LatticeDirection<2>;
25
template
class
LatticeDirection<3>;
26
27
}
// end namespace
28
#endif
model::LatticeVector
Definition
Lattices_NEW/LatticeVector.h:64
create_periodicity_figure.lattice
lattice(ax, filled)
Definition
create_periodicity_figure.py:59
model
Definition
DD_converter.dox:2
model::eval
auto eval(const std::shared_ptr< T > &t)
Definition
TrialExpressionBase.h:63
testPythonMesh.dim
dim
Definition
testPythonMesh.py:140
model::IntegerMath
Definition
IntegerMath.h:15
model::IntScalarType
model::LatticeDirection::LatticeDirection
LatticeDirection(const LatticeVectorType &v)
Definition
Lattices/LatticeDirection.cpp:16
v
REAL v[4]
Definition
triangle.cpp:5345
Generated by
1.15.0