forked from pz4kybsvg/Conception
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
458 B
20 lines
458 B
2 years ago
|
/* clang-format off to disable clang-format-includes */
|
||
|
#include "drake/common/autodiff.h"
|
||
|
#include "drake/common/ad/test/standard_operations_test.h"
|
||
|
/* clang-format on */
|
||
|
|
||
|
namespace drake {
|
||
|
namespace test {
|
||
|
namespace {
|
||
|
|
||
|
TEST_F(AutoDiffXdTest, Multiplication) {
|
||
|
CHECK_BINARY_OP(*, x, y, 1.0);
|
||
|
CHECK_BINARY_OP(*, x, y, -1.0);
|
||
|
CHECK_BINARY_OP(*, y, x, 1.0);
|
||
|
CHECK_BINARY_OP(*, y, x, -1.0);
|
||
|
}
|
||
|
|
||
|
} // namespace
|
||
|
} // namespace test
|
||
|
} // namespace drake
|