Functions | Variables
testSubgraphSolver.cpp File Reference

Unit tests for SubgraphSolver. More...

#include <gtsam/linear/SubgraphSolver.h>
#include <tests/smallExample.h>
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/iterative.h>
#include <gtsam/linear/GaussianFactorGraph.h>
#include <gtsam/linear/SubgraphBuilder.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/inference/Ordering.h>
#include <gtsam/base/numericalDerivative.h>
#include <CppUnitLite/TestHarness.h>
Include dependency graph for testSubgraphSolver.cpp:

Go to the source code of this file.

Functions

static double error (const GaussianFactorGraph &fg, const VectorValues &x)
 
int main ()
 
 TEST (SubgraphSolver, constructor1)
 
 TEST (SubgraphSolver, constructor2)
 
 TEST (SubgraphSolver, constructor3)
 
 TEST (SubgraphSolver, Parameters)
 
 TEST (SubgraphSolver, splitFactorGraph)
 

Variables

static auto kOrdering = example::planarOrdering(N)
 
static SubgraphSolverParameters kParameters
 
static size_t N = 3
 

Detailed Description

Unit tests for SubgraphSolver.

Author
Yong-Dian Jian

Definition in file testSubgraphSolver.cpp.

Function Documentation

◆ error()

static double error ( const GaussianFactorGraph fg,
const VectorValues x 
)
static

unnormalized error

Definition at line 40 of file testSubgraphSolver.cpp.

◆ main()

int main ( )

Definition at line 123 of file testSubgraphSolver.cpp.

◆ TEST() [1/5]

TEST ( SubgraphSolver  ,
constructor1   
)

Definition at line 72 of file testSubgraphSolver.cpp.

◆ TEST() [2/5]

TEST ( SubgraphSolver  ,
constructor2   
)

Definition at line 85 of file testSubgraphSolver.cpp.

◆ TEST() [3/5]

TEST ( SubgraphSolver  ,
constructor3   
)

Definition at line 102 of file testSubgraphSolver.cpp.

◆ TEST() [4/5]

TEST ( SubgraphSolver  ,
Parameters   
)

Definition at line 48 of file testSubgraphSolver.cpp.

◆ TEST() [5/5]

TEST ( SubgraphSolver  ,
splitFactorGraph   
)

Definition at line 55 of file testSubgraphSolver.cpp.

Variable Documentation

◆ kOrdering

auto kOrdering = example::planarOrdering(N)
static

Definition at line 36 of file testSubgraphSolver.cpp.

◆ kParameters

SubgraphSolverParameters kParameters
static

Definition at line 35 of file testSubgraphSolver.cpp.

◆ N

size_t N = 3
static

Definition at line 34 of file testSubgraphSolver.cpp.



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