Made new global functions in unit tests static to avoid duplicate symbols
parent
8e4f605122
commit
abd07e553e
|
@ -54,7 +54,7 @@ TEST( SubgraphPreconditioner, planarOrdering ) {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
/** unnormalized error */
|
/** unnormalized error */
|
||||||
double error(const JacobianFactorGraph& fg, const VectorValues& x) {
|
static double error(const JacobianFactorGraph& fg, const VectorValues& x) {
|
||||||
double total_error = 0.;
|
double total_error = 0.;
|
||||||
BOOST_FOREACH(const JacobianFactor::shared_ptr& factor, fg)
|
BOOST_FOREACH(const JacobianFactor::shared_ptr& factor, fg)
|
||||||
total_error += factor->error(x);
|
total_error += factor->error(x);
|
||||||
|
|
|
@ -38,7 +38,7 @@ using namespace example;
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
/** unnormalized error */
|
/** unnormalized error */
|
||||||
double error(const JacobianFactorGraph& fg, const VectorValues& x) {
|
static double error(const JacobianFactorGraph& fg, const VectorValues& x) {
|
||||||
double total_error = 0.;
|
double total_error = 0.;
|
||||||
BOOST_FOREACH(const JacobianFactor::shared_ptr& factor, fg)
|
BOOST_FOREACH(const JacobianFactor::shared_ptr& factor, fg)
|
||||||
total_error += factor->error(x);
|
total_error += factor->error(x);
|
||||||
|
|
Loading…
Reference in New Issue