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