Classes | Functions | Variables
testFunctorizedFactor.cpp File Reference

unit tests for FunctorizedFactor class More...

#include <gtsam/nonlinear/FunctorizedFactor.h>
#include <gtsam/nonlinear/LevenbergMarquardtOptimizer.h>
#include <gtsam/nonlinear/factorTesting.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/TestableAssertions.h>
#include <CppUnitLite/TestHarness.h>
Include dependency graph for testFunctorizedFactor.cpp:

Go to the source code of this file.

Classes

class  MultiplyFunctor
 Functor that takes a matrix and multiplies every element by m. More...
 
class  ProjectionFunctor
 Functor that performs Ax where A is a matrix and x is a vector. More...
 

Functions

int main ()
 
 TEST (FunctorizedFactor, Equality)
 
 TEST (FunctorizedFactor, Functional)
 
 TEST (FunctorizedFactor, Functional2)
 
 TEST (FunctorizedFactor, Identity)
 
 TEST (FunctorizedFactor, Identity2)
 
 TEST (FunctorizedFactor, Jacobians)
 
 TEST (FunctorizedFactor, Jacobians2)
 
 TEST (FunctorizedFactor, Lambda)
 
 TEST (FunctorizedFactor, Lambda2)
 
 TEST (FunctorizedFactor, Multiply2)
 
 TEST (FunctorizedFactor, Print)
 

Variables

Key key = Symbol('X', 0)
 
Key keyA = Symbol('A', 0)
 
Key keyx = Symbol('x', 0)
 
auto model = noiseModel::Isotropic::Sigma(9, 1)
 
auto model2 = noiseModel::Isotropic::Sigma(3, 1)
 

Detailed Description

unit tests for FunctorizedFactor class

Date
May 31, 2020
Author
Varun Agrawal

Definition in file testFunctorizedFactor.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 273 of file testFunctorizedFactor.cpp.

◆ TEST() [1/11]

TEST ( FunctorizedFactor  ,
Equality   
)

Definition at line 102 of file testFunctorizedFactor.cpp.

◆ TEST() [2/11]

TEST ( FunctorizedFactor  ,
Functional   
)

Definition at line 158 of file testFunctorizedFactor.cpp.

◆ TEST() [3/11]

TEST ( FunctorizedFactor  ,
Functional2   
)

Definition at line 231 of file testFunctorizedFactor.cpp.

◆ TEST() [4/11]

TEST ( FunctorizedFactor  ,
Identity   
)

Definition at line 73 of file testFunctorizedFactor.cpp.

◆ TEST() [5/11]

TEST ( FunctorizedFactor  ,
Identity2   
)

Definition at line 197 of file testFunctorizedFactor.cpp.

◆ TEST() [6/11]

TEST ( FunctorizedFactor  ,
Jacobians   
)

Definition at line 117 of file testFunctorizedFactor.cpp.

◆ TEST() [7/11]

TEST ( FunctorizedFactor  ,
Jacobians2   
)

Definition at line 213 of file testFunctorizedFactor.cpp.

◆ TEST() [8/11]

TEST ( FunctorizedFactor  ,
Lambda   
)

Definition at line 175 of file testFunctorizedFactor.cpp.

◆ TEST() [9/11]

TEST ( FunctorizedFactor  ,
Lambda2   
)

Definition at line 248 of file testFunctorizedFactor.cpp.

◆ TEST() [10/11]

TEST ( FunctorizedFactor  ,
Multiply2   
)

Definition at line 87 of file testFunctorizedFactor.cpp.

◆ TEST() [11/11]

TEST ( FunctorizedFactor  ,
Print   
)

Definition at line 135 of file testFunctorizedFactor.cpp.

Variable Documentation

◆ key

Key key = Symbol('X', 0)

Definition at line 33 of file testFunctorizedFactor.cpp.

◆ keyA

Key keyA = Symbol('A', 0)

Definition at line 36 of file testFunctorizedFactor.cpp.

◆ keyx

Key keyx = Symbol('x', 0)

Definition at line 37 of file testFunctorizedFactor.cpp.

◆ model

auto model = noiseModel::Isotropic::Sigma(9, 1)

Definition at line 39 of file testFunctorizedFactor.cpp.

◆ model2

auto model2 = noiseModel::Isotropic::Sigma(3, 1)

Definition at line 40 of file testFunctorizedFactor.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:53