Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
Lattices_NEW/RationalMatrix.h
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_RationalMatrix_h_
8#define model_RationalMatrix_h_
9
10#include <LatticeCore.h>
12
13namespace model
14{
15
16 template <int dim>
17 class RationalMatrix
18 {
19 typedef typename LatticeCore<dim>::IntScalarType IntScalarType;
20 typedef typename LatticeCore<dim>::VectorDimD VectorDimD;
21 typedef typename LatticeCore<dim>::MatrixDimD MatrixDimD;
22 typedef typename LatticeCore<dim>::VectorDimI VectorDimI;
23 typedef typename LatticeCore<dim>::MatrixDimI MatrixDimI;
24
25 static constexpr int64_t maxDen=100000;
26 static std::pair<MatrixDimI,IntScalarType> compute(const MatrixDimD& R);
27
28 const std::pair<MatrixDimI,IntScalarType> returnPair;
29
30 public:
31
32 const MatrixDimI& integerMatrix;
33 const IntScalarType& mu;
34
35 RationalMatrix(const MatrixDimD& R) ;
36 RationalMatrix(const MatrixDimI& Rn,const IntScalarType& Rd);
37 MatrixDimD asMatrix() const;
38
39 };
40
41} // end namespace
42#endif
43
44
RationalMatrix(const MatrixDimD &R)
Eigen::Matrix< IntScalarType, dim, dim > MatrixDimI
Definition LatticeCore.h:28
long long int IntScalarType
Definition LatticeCore.h:26
Eigen::Matrix< double, dim, 1 > VectorDimD
Definition LatticeCore.h:24
Eigen::Matrix< double, dim, dim > MatrixDimD
Definition LatticeCore.h:25
Eigen::Matrix< IntScalarType, dim, 1 > VectorDimI
Definition LatticeCore.h:27