Unit test for OptionalJacobian. More...
#include <gtsam/base/Matrix.h>
#include <gtsam/base/OptionalJacobian.h>
#include <CppUnitLite/TestHarness.h>
#include <optional>
#include <functional>
Go to the source code of this file.
Macros | |
#define | TEST_CONSTRUCTOR(DIM1, DIM2, X, TRUTHY) |
Functions | |
int | main () |
TEST (OptionalJacobian, Block) | |
TEST (OptionalJacobian, Constructors) | |
TEST (OptionalJacobian, Dynamic) | |
TEST (OptionalJacobian, Fixed) | |
void | test (OptionalJacobian< 2, 3 > H={}) |
void | test2 (OptionalJacobian<-1,-1 > H={}) |
void | test3 (double add, OptionalJacobian< 2, 1 > H={}) |
void | test4 (OptionalJacobian< 2, 3 > H={}) |
Variables | |
Matrix | kTestMatrix = (Matrix23() << 11,12,13,21,22,23).finished() |
#define TEST_CONSTRUCTOR | ( | DIM1, | |
DIM2, | |||
X, | |||
TRUTHY | |||
) |
Definition at line 30 of file testOptionalJacobian.cpp.
int main | ( | ) |
Definition at line 176 of file testOptionalJacobian.cpp.
TEST | ( | OptionalJacobian | , |
Block | |||
) |
Definition at line 165 of file testOptionalJacobian.cpp.
TEST | ( | OptionalJacobian | , |
Constructors | |||
) |
Definition at line 35 of file testOptionalJacobian.cpp.
TEST | ( | OptionalJacobian | , |
Dynamic | |||
) |
Definition at line 128 of file testOptionalJacobian.cpp.
TEST | ( | OptionalJacobian | , |
Fixed | |||
) |
Definition at line 68 of file testOptionalJacobian.cpp.
void test | ( | OptionalJacobian< 2, 3 > | H = {} | ) |
Definition at line 63 of file testOptionalJacobian.cpp.
void test2 | ( | OptionalJacobian<-1,-1 > | H = {} | ) |
Definition at line 123 of file testOptionalJacobian.cpp.
void test3 | ( | double | add, |
OptionalJacobian< 2, 1 > | H = {} |
||
) |
Definition at line 152 of file testOptionalJacobian.cpp.
void test4 | ( | OptionalJacobian< 2, 3 > | H = {} | ) |
Definition at line 157 of file testOptionalJacobian.cpp.
Matrix kTestMatrix = (Matrix23() << 11,12,13,21,22,23).finished() |
Definition at line 61 of file testOptionalJacobian.cpp.