1 #ifndef EIQUADPROG_UTILS_HPP_ 2 #define EIQUADPROG_UTILS_HPP_ 7 template <
typename Scalar>
8 inline Scalar
distance(Scalar a, Scalar b) {
14 return a1 * std::sqrt(1.0 + t * t);
17 return b1 * std::sqrt(1.0 + t * t);
19 return a1 * std::sqrt(2.0);
22 template <
class Derived>
23 void print_vector(
const char* name, Eigen::MatrixBase<Derived>& x,
int n) {
26 template <
class Derived>
27 void print_matrix(
const char* name, Eigen::MatrixBase<Derived>& x,
int n) {
void print_matrix(const char *name, Eigen::MatrixBase< Derived > &x, int n)
Definition: eiquadprog-utils.hxx:27
void print_vector(const char *name, Eigen::MatrixBase< Derived > &x, int n)
Definition: eiquadprog-utils.hxx:23
Scalar distance(Scalar a, Scalar b)
Compute sqrt(a^2 + b^2)
Definition: eiquadprog-utils.hxx:8