Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
src
Lattices_NEW
Lattices_NEW/ReciprocalLatticeDirection.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_ReciprocalLatticeDirection_cpp_
8
#define model_ReciprocalLatticeDirection_cpp_
9
10
#include <LatticeModule.h>
11
12
namespace
model
13
{
14
template
<
int
dim>
15
ReciprocalLatticeDirection<dim>::ReciprocalLatticeDirection
(
const
ReciprocalLatticeVector<dim>
&
v
) :
16
/* init */
ReciprocalLatticeVector
<
dim
>(((
v
.squaredNorm()==0)?
v
: (
v
/
IntegerMath
<
IntScalarType
>::gcd(
v
)).
eval
()),
v
.
lattice
)
17
{
18
}
19
20
21
template
struct
ReciprocalLatticeDirection<1>;
22
template
struct
ReciprocalLatticeDirection<2>;
23
template
struct
ReciprocalLatticeDirection<3>;
24
25
}
// end namespace
26
#endif
model::ReciprocalLatticeVector
Definition
Lattices_NEW/ReciprocalLatticeVector.h:67
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::ReciprocalLatticeDirection::ReciprocalLatticeDirection
ReciprocalLatticeDirection(const ReciprocalLatticeVectorType &v)
Definition
Lattices/ReciprocalLatticeDirection.cpp:17
v
REAL v[4]
Definition
triangle.cpp:5345
Generated by
1.15.0