Drake
autodiffxd_test.h File Reference
#include <gtest/gtest.h>
#include "drake/common/autodiff.h"
Include dependency graph for autodiffxd_test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AutoDiffXdTest
 

Namespaces

 drake
 
 drake::test
 

Macros

#define CHECK_EXPR(expr)
 
#define CHECK_BINARY_OP(bop, x, y, c)
 
#define CHECK_UNARY_FUNCTION(f, x, y, c)
 
#define CHECK_BINARY_FUNCTION_ADS_ADS(f, x, y, c)
 
#define CHECK_BINARY_FUNCTION_ADS_SCALAR(f, x, y, c)
 

Macro Definition Documentation

#define CHECK_BINARY_FUNCTION_ADS_ADS (   f,
  x,
  y,
 
)
Value:
CHECK_EXPR(f(x + x, y + y) + x); \
CHECK_EXPR(f(x + x, y + y) + y); \
CHECK_EXPR(f(x + y, y + y) + x); \
CHECK_EXPR(f(x + y, y + y) + y); \
CHECK_EXPR(f(x - x, y - y) - x); \
CHECK_EXPR(f(x - x, y - y) - y); \
CHECK_EXPR(f(x - y, y - y) - x); \
CHECK_EXPR(f(x - y, y - y) - y); \
CHECK_EXPR(f(x* x, y* y) * x); \
CHECK_EXPR(f(x* x, y* y) * y); \
CHECK_EXPR(f(x* y, y* y) * x); \
CHECK_EXPR(f(x* y, y* y) * y); \
CHECK_EXPR(f(x / x, y / y) / x); \
CHECK_EXPR(f(x / x, y / y) / y); \
CHECK_EXPR(f(x / y, y / y) / x); \
CHECK_EXPR(f(x / y, y / y) / y); \
CHECK_EXPR(f(x + c, y + c) + x); \
CHECK_EXPR(f(c + x, c + x) + x); \
CHECK_EXPR(f(x* c, y* c) + x); \
CHECK_EXPR(f(c* x, c* x) + x); \
CHECK_EXPR(f(-x, -y) + y)
int y
Definition: rgbd_renderer_test.cc:33
std::vector< Number > x
Definition: ipopt_solver.cc:150
#define CHECK_EXPR(expr)
Definition: autodiffxd_test.h:57
#define CHECK_BINARY_FUNCTION_ADS_SCALAR (   f,
  x,
  y,
 
)
Value:
CHECK_EXPR(f(x, c) + y); \
CHECK_EXPR(f(x + x, c) + y); \
CHECK_EXPR(f(x + y, c) + y); \
CHECK_EXPR(f(x - x, c) - y); \
CHECK_EXPR(f(x - x, c) - y); \
CHECK_EXPR(f(x* x, c) * y); \
CHECK_EXPR(f(x* x, c) * y); \
CHECK_EXPR(f(x / x, c) / y); \
CHECK_EXPR(f(x / x, c) / y); \
CHECK_EXPR(f(x + c, c) + y); \
CHECK_EXPR(f(c + x, c) + y); \
CHECK_EXPR(f(x* c, c) + y); \
CHECK_EXPR(f(c* x, c) + y); \
CHECK_EXPR(f(-x, c) + y);
int y
Definition: rgbd_renderer_test.cc:33
std::vector< Number > x
Definition: ipopt_solver.cc:150
#define CHECK_EXPR(expr)
Definition: autodiffxd_test.h:57
#define CHECK_BINARY_OP (   bop,
  x,
  y,
 
)
Value:
CHECK_EXPR((x bop x)bop(y bop y)); \
CHECK_EXPR((x bop y)bop(x bop y)); \
CHECK_EXPR((x bop y)bop c); \
CHECK_EXPR((x bop y)bop c); \
CHECK_EXPR((x bop c)bop y); \
CHECK_EXPR((c bop x)bop y); \
CHECK_EXPR(x bop(y bop c)); \
CHECK_EXPR(x bop(c bop y)); \
CHECK_EXPR(c bop(x bop y));
int y
Definition: rgbd_renderer_test.cc:33
std::vector< Number > x
Definition: ipopt_solver.cc:150
#define CHECK_EXPR(expr)
Definition: autodiffxd_test.h:57
#define CHECK_EXPR (   expr)
Value:
EXPECT_TRUE( \
Check([](const auto& x, const auto& y) -> \
typename Eigen::internal::remove_reference<decltype(x)>::type { \
return expr; \
})) \
<< #expr
int y
Definition: rgbd_renderer_test.cc:33
std::vector< Number > x
Definition: ipopt_solver.cc:150
#define CHECK_UNARY_FUNCTION (   f,
  x,
  y,
 
)
Value:
CHECK_EXPR(f(x + x) + (y + y)); \
CHECK_EXPR(f(x + y) + (x + y)); \
CHECK_EXPR(f(x - x) + (y - y)); \
CHECK_EXPR(f(x - y) + (x - y)); \
CHECK_EXPR(f(x* x) + (y * y)); \
CHECK_EXPR(f(x* y) + (x * y)); \
CHECK_EXPR(f(x / x) + (y / y)); \
CHECK_EXPR(f(x / y) + (x / y)); \
CHECK_EXPR(f(x + c) + y); \
CHECK_EXPR(f(x - c) + y); \
CHECK_EXPR(f(x* c) + y); \
CHECK_EXPR(f(x / c) + y); \
CHECK_EXPR(f(c + x) + y); \
CHECK_EXPR(f(c - x) + y); \
CHECK_EXPR(f(c* x) + y); \
CHECK_EXPR(f(c / x) + y); \
CHECK_EXPR(f(-x) + y);
int y
Definition: rgbd_renderer_test.cc:33
std::vector< Number > x
Definition: ipopt_solver.cc:150
#define CHECK_EXPR(expr)
Definition: autodiffxd_test.h:57