Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
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>
11namespace model
12{
13
14
15 template <int dim>
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
auto eval(const std::shared_ptr< T > &t)
LatticeDirection(const LatticeVectorType &v)
REAL v[4]