TestB.cpp
Go to the documentation of this file.
1 #include "TestB.hpp"
2 
3 #include <Eigen/Core>
4 #include <iostream>
5 
6 using namespace eiquadprog::solvers;
7 namespace eiquadprog {
8 namespace tests {
9 
10 B::B() : solution_(2) { solution_.setZero(); }
11 
14 
15  Eigen::VectorXd x(2);
16 
18 
19  bool rstatus = true;
20 
21  if (status != expected) {
22  std::cerr << "Status not to true for A_" << expected << " " << status
23  << std::endl;
24  rstatus = false;
25  }
26 
27  if (!x.isApprox(solution_)) {
28  std::cerr << "x!=solution : " << x << "!=" << solution_ << std::endl;
29  rstatus = false;
30  }
31  return rstatus;
32 }
33 
34 } // namespace tests
35 } // namespace eiquadprog
eiquadprog::solvers::EiquadprogFast_status solve(Eigen::VectorXd &x)
Definition: TestA.cpp:21
Eigen::VectorXd solution_
Definition: TestB.hpp:11
bool do_something()
Definition: TestB.cpp:12


eiquadprog
Author(s): Gabriele Buondonno, Andrea Del Prete, Luca Di Gaspero, Angelo Furfaro, Benjamin Stephens, Gael Guennebaud
autogenerated on Tue Jun 20 2023 02:45:29