NetDEM v1.0
Loading...
Searching...
No Matches
eigen_wrapper.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "utils_math.hpp"
4
5namespace netdem {
6
12public:
19 static Mat3d GetEigenVector(const Mat3d &mat);
20
29 const VecXT<double> &b);
30
39 static Vec3d SolveLinearEqn(Mat3d const &a, const Vec3d &b);
40};
41
42} // namespace netdem
The EigenWrapper class provides a wrapper for various Eigen matrix operations.
Definition eigen_wrapper.hpp:11
static VecXT< double > SolveLinearEqn(const VecXT< VecXT< double > > &a, const VecXT< double > &b)
Solves a system of linear equations using Eigen decomposition.
Definition eigen_wrapper.cpp:239
static Mat3d GetEigenVector(const Mat3d &mat)
Calculates the eigenvectors of a 3x3 matrix.
Definition eigen_wrapper.cpp:168
Definition bond_entry.hpp:7
std::array< std::array< double, 3 >, 3 > Mat3d
Definition utils_macros.hpp:22
std::vector< T > VecXT
Definition utils_macros.hpp:31
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18