Go to the documentation of this file.
56 GTSAM_EXPORT
static const size_t Empty;
75 GTSAM_EXPORT
void print(
const std::string&
str =
"VariableSlots: ")
const;
90 gttic(VariableSlots_constructor);
91 static const bool debug =
false;
99 size_t jointFactorPos = 0;
100 for(
const typename FG::sharedFactor&
factor: factorGraph) {
104 size_t factorVarSlot = 0;
105 for(
const Key involvedVariable: *
factor) {
114 thisVarSlots->second.resize(factorGraph.nrFactors(),
Empty);
115 thisVarSlots->second[jointFactorPos] = factorVarSlot;
116 if(
debug) std::cout <<
" var " << involvedVariable <<
" rowblock " << jointFactorPos <<
" comes from factor's slot " << factorVarSlot << std::endl;
GTSAM_EXPORT bool equals(const VariableSlots &rhs, double tol=0.0) const
static const GTSAM_EXPORT size_t Empty
A thin wrapper around std::vector that uses a custom allocator.
Included from all GTSAM files.
Concept check for values that can be used in unit tests.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
DecisionTreeFactor factor(D &C &B &A, "0.0 0.0 0.0 0.60658897 0.61241912 0.61241969 0.61247685 0.61247742 0.0 " "0.0 0.0 0.99995287 1.0 1.0 1.0 1.0")
static constexpr bool debug
FastMap< Key, FastVector< size_t > > Base
GTSAM_EXPORT void print(const std::string &str="VariableSlots: ") const
std::uint64_t Key
Integer nonlinear key type.
VariableSlots(const FG &factorGraph)
A thin wrapper around std::map that uses boost's fast_pool_allocator.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:23