Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
LatticeTransitionMatrix.h
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_LatticeTransitionMatrix_h_
9#define model_LatticeTransitionMatrix_h_
10
11#include <cfloat> // FLT_EPSILON
12#include <Eigen/Dense>
13//#include <RoundEigen.h>
14#include <SmithDecomposition.h>
15#include <Lattice.h>
16#include <RationalMatrix.h>
17
18
19namespace model
20{
26 template <int dim>
28 {
29 static_assert(dim>0,"dim must be > 0.");
30 // static constexpr double roundTol=FLT_EPSILON;
31 typedef Eigen::Matrix< double,dim,1> VectorDimD;
32 typedef Eigen::Matrix<long int,dim,1> VectorDimI;
33 typedef Eigen::Matrix<double,dim,dim> MatrixDimD;
35 typedef long long int IntValueType;
36 typedef Eigen::Matrix<IntValueType,dim,dim> MatrixInt;
37
38
39
40 /**********************************************************************/
41 static IntValueType gcd(const IntValueType& a,const IntValueType& b);
42
43
44 /**********************************************************************/
46 const LatticeType& B);
47
48
49 /**********************************************************************/
51 const LatticeType& B_in) ;
52 };
53
54
55} // end namespace
56#endif
57
58
RationalMatrix(const MatrixDimD &R)
initial point of the source segment B
function infiniteDisplacement syms Ax Ay Az Bx By Bz qx qy qz u L x y z real A
a
Definition int_R.m:14
b
Definition int_R.m:16
Eigen::Matrix< double, dim, 1 > VectorDimD
static RationalMatrix< dim > getTransitionMatrix(const LatticeType &A, const LatticeType &B)
Eigen::Matrix< IntValueType, dim, dim > MatrixInt
Eigen::Matrix< double, dim, dim > MatrixDimD
Eigen::Matrix< long int, dim, 1 > VectorDimI
static IntValueType gcd(const IntValueType &a, const IntValueType &b)
LatticeTransitionMatrix(const LatticeType &A_in, const LatticeType &B_in)