gtsam
symbolic
SymbolicConditional.cpp
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
3
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
4
* Atlanta, Georgia 30332-0415
5
* All Rights Reserved
6
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8
* See LICENSE for the license information
9
10
* -------------------------------------------------------------------------- */
11
18
#include <
gtsam/symbolic/SymbolicConditional.h
>
19
20
namespace
gtsam
{
21
22
using namespace
std
;
23
24
/* ************************************************************************* */
25
void
SymbolicConditional::print
(
const
std::string&
str
,
26
const
KeyFormatter
& keyFormatter)
const
{
27
BaseConditional::print
(
str
, keyFormatter);
28
}
29
30
/* ************************************************************************* */
31
bool
SymbolicConditional::equals
(
const
This
&
c
,
double
tol
)
const
{
32
return
BaseFactor::equals(
c
) && BaseConditional::equals(
c
);
33
}
34
35
/* ************************************************************************* */
36
double
SymbolicConditional::logProbability
(
const
HybridValues
&
c
)
const
{
37
throw
std::runtime_error(
"SymbolicConditional::logProbability is not implemented"
);
38
}
39
40
/* ************************************************************************* */
41
double
SymbolicConditional::evaluate
(
const
HybridValues
&
c
)
const
{
42
throw
std::runtime_error(
"SymbolicConditional::evaluate is not implemented"
);
43
}
44
45
46
}
// namespace gtsam
Eigen::internal::print
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)
Definition:
NEON/PacketMath.h:3115
gtsam::HybridValues
Definition:
HybridValues.h:37
c
Scalar Scalar * c
Definition:
benchVecAdd.cpp:17
gtsam::Factor
Definition:
Factor.h:70
SymbolicConditional.h
gtsam::SymbolicConditional::print
void print(const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override
Definition:
SymbolicConditional.cpp:25
gtsam::KeyFormatter
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition:
Key.h:35
gtsam::SymbolicConditional::equals
bool equals(const This &c, double tol=1e-9) const
Definition:
SymbolicConditional.cpp:31
str
Definition:
pytypes.h:1558
gtsam
traits
Definition:
SFMdata.h:40
std
Definition:
BFloat16.h:88
gtsam::tol
const G double tol
Definition:
Group.h:79
gtsam::SymbolicConditional::logProbability
double logProbability(const HybridValues &x) const override
logProbability throws exception, symbolic.
Definition:
SymbolicConditional.cpp:36
gtsam::SymbolicConditional::evaluate
double evaluate(const HybridValues &x) const override
evaluate throws exception, symbolic.
Definition:
SymbolicConditional.cpp:41
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:14:22