22 Eigen::VectorXd getSystemValue()
const{
26 static vectorEigen randomVector(
int dimension,uint32_t seed){
27 std::mt19937 generator(seed);
28 std::normal_distribution<double> distribution(0.0,1.0);
30 Eigen::VectorXd tmp(dimension);
31 for(
int i = 0; i < dimension; i++){
32 tmp[i] = distribution(generator);
41 vectorEigen res(lhs.getSystemValue() - rhs.getSystemValue());
46 vectorEigen res(lhs.getSystemValue() + rhs.getSystemValue());
50 std::ostream& operator<<(std::ostream& stream,
const vectorEigen & vec) {
51 Eigen::VectorXd v = vec.getSystemValue();
61 Eigen::MatrixXd value;
70 static matrixEigen Identity(
int dimension,
int dimension2){
71 return matrixEigen(Eigen::MatrixXd::Identity(dimension,dimension));
84 Eigen::MatrixXd getSystemValue()
const{
90 matrixEigen res(lhs.getSystemValue()*rhs.getSystemValue());
95 matrixEigen res(lhs.getSystemValue() + rhs.getSystemValue());
100 matrixEigen res(lhs.getSystemValue() - rhs.getSystemValue());
104 std::ostream& operator<<(std::ostream& stream,
const matrixEigen & mat) {
105 Eigen::MatrixXd v = mat.getSystemValue();
114 vectorEigen res(lhs.getSystemValue()*rhs.getSystemValue());
119 vectorEigen res(lhs.getSystemValue()*rhs.getSystemValue());