Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
Lattices/ReciprocalLatticeDirection.cpp
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_ReciprocalLatticeDirection_cpp_
9#define model_ReciprocalLatticeDirection_cpp_
10
11#include <LatticeModule.h>
12
13namespace model
14{
15
16 template <int dim>
21
22 template <int dim>
24 /* base init */ ReciprocalLatticeVectorType(((v.squaredNorm()==0)? v : (v/LatticeGCD<dim>::gcd(v)).eval()),lat)
25 {
26 }
27
28 template <int dim>
31 {
32 // assert(this->squaredNorm() && "ReciprocalLatticeDirection has Zero Norm");
33 }
34
35 template struct ReciprocalLatticeDirection<3>;
36} // end namespace
37#endif
LatticeDirectionType cross(const ReciprocalLatticeVectorType &other) const
auto eval(const std::shared_ptr< T > &t)
ReciprocalLatticeVector< dim > ReciprocalLatticeVectorType
ReciprocalLatticeDirection(const ReciprocalLatticeVectorType &v)
REAL v[4]