18 double getSystemValue()
const{
23 static vectorDouble randomVector(
int dimension,uint32_t seed){
24 std::mt19937 generator(seed);
25 std::normal_distribution<double> distribution(0.0,1.0);
26 double value = distribution(generator);
35 vectorDouble res(lhs.getSystemValue() - rhs.getSystemValue());
40 vectorDouble res(lhs.getSystemValue() + rhs.getSystemValue());
44 std::ostream& operator<<(std::ostream& stream,
const vectorDouble & vec) {
45 double v = vec.getSystemValue();
65 static matrixDouble Identity(
int dimension,
int dimension2){
76 throw std::overflow_error(
"Divide by zero exception");
82 double getSystemValue()
const{
88 matrixDouble res(lhs.getSystemValue()*rhs.getSystemValue());
93 matrixDouble res(lhs.getSystemValue() + rhs.getSystemValue());
98 matrixDouble res(lhs.getSystemValue() - rhs.getSystemValue());
102 std::ostream& operator<<(std::ostream& stream,
const matrixDouble & vec) {
103 double v = vec.getSystemValue();
112 vectorDouble res(lhs.getSystemValue()*rhs.getSystemValue());
117 vectorDouble res(lhs.getSystemValue()*rhs.getSystemValue());