Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
RationalOrthogonalApproximation.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_RationalOrthogonalApproximation_h_
9#define model_RationalOrthogonalApproximation_h_
10
11#include <iostream>
12#include <iomanip>
13#include <cfloat> // FLT_EPSILON
14#include <assert.h> // FLT_EPSILON
15#include <utility>
16#include <Eigen/Dense>
17#include <Eigen/Geometry>
18
19// #include <RoundEigen.h>
20
21
22namespace model
23{
33 {
34
35 /**********************************************************************/
36 static std::pair<Eigen::Matrix<long int,3,3>,long int> compute(const double& angle,
37 const Eigen::Matrix<double,3,1>& axis,
38 const double& maxDen);
39
40 const std::pair<Eigen::Matrix<long int,3,3>,long int> resultPair;
41
42
43 public:
44
45 const Eigen::Matrix<long int,3,3>& m;
46 const long int& den;
47
48
49 /**********************************************************************/
51 const Eigen::Matrix<double,3,1>& axis,
52 const long int& maxDen) ;
53 };
54
55}
56#endif
57
58
const Eigen::Matrix< long int, 3, 3 > & m
RationalOrthogonalApproximation(const double &angle, const Eigen::Matrix< double, 3, 1 > &axis, const long int &maxDen)
REAL angle
int axis