Some tools to ease pretty printing of objects in HPP. To print vectors, you have the following options:
which should output something like
R = 1, 0, 0
0, 1, 0
0, 0, 1
p = 0, 0, 0
q = 0, 0, 0, 1
p = 0, 0, 0
q = 0, 0, 0, 1, p = 0, 0, 0
R = ( (1, 0, 0,)
(0, 1, 0,)
(0, 0, 1,) )
p = (0, 0, 0,)
q = (0, 0, 0, 1,)
p = (0, 0, 0,)
q = (0, 0, 0, 1,), p = (0, 0, 0,)
1, 1
1, 1
1, 1
1, 1
1, 1
( (1, 0, 0,),
(0, 1, 0,),
(0, 0, 1,), )
( (1, 0, 0,), (0, 1, 0,), (0, 0, 1,), )
( (1, 0,), (0, 1,), )
◆ anonymous enum
The printing options, currently only contains the output format.
Enumerator |
---|
OutputFormatBits | |
OneLineOutput | |
CondensedOutput | |
PrettyOutput | |
◆ condensed()
◆ one_line()
◆ pretty_print()
template<typename T >
PrettyPrint<T, PrettyOutput > hpp::pretty_print |
( |
const T & |
t | ) |
|
|
inline |
◆ setpyformat()
HPP_PINOCCHIO_DLLAPI std::ostream& hpp::setpyformat |
( |
std::ostream & |
o | ) |
|
◆ unsetpyformat()
HPP_PINOCCHIO_DLLAPI std::ostream& hpp::unsetpyformat |
( |
std::ostream & |
o | ) |
|