Printing and debugging¶
Overview¶
Every KSL type can be printed to a FILE* such as stdout or a log
file. Each type has three forms:
ksl_<type>_print(f, x)always prints.ksl_<type>_debug(f, x)prints likeprintin a debug build, and compiles to nothing whenNDEBUGis defined, as in a release build. It can be left in code that runs every time step at no cost to the release build.ksl_<type>_printWithOptions(f, x, label, options)is the function that the two macros above call.
The macros take two optional arguments after the value: a label printed before
it, and a pointer to a ksl_print_options_t that controls the format:
ksl_SE3_print(stdout, &D); /* default format */
ksl_SE3_print(stdout, &D, "D"); /* with a label */
ksl_SE3_print(stdout, &D, "D", &options); /* with custom options */
The options set the number format (a printf format such as "%0.6g"),
the delimiter between values, the brackets, whether each matrix row starts on
a new line, and whether matrices print row by row or column by column. The
ksl_print_set... functions change the global defaults when no options
pointer is given, or the fields of an options struct when one is.
Setting print options¶
whether rows of a matrix are printed on separate lines |
|
print formatting options |
|
set global print options to default settings |
|
used to set delimiter used in display of matrices, vectors, screws, etc. |
|
used to set delimiter used in display of matrices, vectors, etc. |
|
used to set format for display of float and double values |
|
used to set format for display of float and double values |
|
used to set inner brackets in dispay of matrices |
|
used to set inner brackets in dispay of matrices |
|
used to set outer brackets in dispay of matrices |
|
used to set outer brackets in dispay of matrices |
|
used to set “BreakBetweenLinesInMatrix” option for dispay of matrices |
|
used to set “BreakBetweenLinesInMatrix” option for dispay of matrices |
|
used to set display of boolean values |
|
used to set display of boolean values |
|
used to set “RowColumnMajorPrinting” option for dispay of matrices |
|
used to set “RowColumnMajorPrinting” option for dispay of matrices |
|
constructor used to create a default print options on the heap. must be freed by user. |
-
enum ksl_print_breakBetweenLines_enum_t¶
whether rows of a matrix are printed on separate lines
Values:
-
enumerator KSL_NO_BREAK_BETWEEN_LINES¶
-
enumerator KSL_BREAK_BETWEEN_LINES¶
-
enumerator KSL_NO_BREAK_BETWEEN_LINES¶
-
struct ksl_print_options_t¶
print formatting options
-
void ksl_print_setDefaultOptions()¶
set global print options to default settings
-
ksl_print_setDelimiter(delimiter, ...)¶
used to set delimiter used in display of matrices, vectors, screws, etc.
- Parameters:
delimiter – [in] string printed between elements
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setDelimiterOption(const char *delimiter, ...)¶
used to set delimiter used in display of matrices, vectors, etc.
- Parameters:
delimiter – [in] string printed between elements
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setRealFormat(fmt, ...)¶
used to set format for display of float and double values
- Parameters:
fmt – [in] printf format for real numbers, e.g. “%0.6g”
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setRealFormatOption(const char *fmt, ...)¶
used to set format for display of float and double values
- Parameters:
fmt – [in]
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setInnerBrackets(left, right, ...)¶
used to set inner brackets in dispay of matrices
- Parameters:
left – [in] left bracket
right – [in] right bracket
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setInnerBracketsOption(const char *left, const char *right, ...)¶
used to set inner brackets in dispay of matrices
- Parameters:
left – [in] left bracket
right – [in] right bracket
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setOuterBrackets(left, right, ...)¶
used to set outer brackets in dispay of matrices
- Parameters:
left – [in] left bracket
right – [in] right bracket
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setOuterBracketsOption(const char *left, const char *right, ...)¶
used to set outer brackets in dispay of matrices
- Parameters:
left – [in] left bracket
right – [in] right bracket
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setBreakBetweenLinesInMatrix(val, ...)¶
used to set “BreakBetweenLinesInMatrix” option for dispay of matrices
- Parameters:
val – [in] valid inputs are KSL_BREAK_BETWEEN_LINES or KSL_NO_BREAK_BETWEEN_LINES
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setBreakBetweenLinesInMatrixOption(ksl_print_breakBetweenLines_enum_t val, ...)¶
used to set “BreakBetweenLinesInMatrix” option for dispay of matrices
- Parameters:
val – [in] valid inputs are KSL_BREAK_BETWEEN_LINES or KSL_NO_BREAK_BETWEEN_LINES
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setBoolean(True, False, ...)¶
used to set display of boolean values
- Parameters:
True – [in] string to display true values
False – [in] string to display false values
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setBooleanOption(const char *True, const char *False, ...)¶
used to set display of boolean values
- Parameters:
True – [in] string to display true values
False – [in] string to display false values
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_setRowColumnMajorPrinting(val, ...)¶
used to set “RowColumnMajorPrinting” option for dispay of matrices
- Parameters:
val – [in] valid inputs are KSL_ROW_MAJOR or KSL_COLUMN_MAJOR
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
void ksl_print_setRowColumnMajorPrintingOption(ksl_matrix_enum_t print_row_column_major, ...)¶
used to set “RowColumnMajorPrinting” option for dispay of matrices
- Parameters:
print_row_column_major – [in] valid inputs are KSL_ROW_MAJOR or KSL_COLUMN_MAJOR
... – [in] optional pointer to a ksl_print_options_t struct containing print options. If it is NULL or not present, the option is set in the global print options.
-
ksl_print_options_t *ksl_print_options()¶
constructor used to create a default print options on the heap. must be freed by user.
Double precision¶
“debug” print a ksl_vec3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec3_t in release mode, use the ksl_vec3_print function. |
|
print a ksl_vec3_t data structure. |
|
print a ksl_vec3_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3_debug and ksl_vec3_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_mat3x3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat3x3_t in release mode, use the ksl_mat3x3_print function. |
|
print a ksl_mat3x3_t data structure. |
|
print a ksl_mat3x3_t data structure. This function is intended to be called by the helper macros ksl_mat3x3_debug and ksl_mat3x3_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_mat4x4_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat4x4_t in release mode, use the ksl_mat4x4_print function. |
|
print a ksl_mat4x4_t data structure. |
|
print a ksl_mat4x4_t data structure with user defined label and options. This function is intended to be called by the ksl_mat4x4_debug and ksl_mat4x4_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_quaternion_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_quaternion_t in release mode, use the ksl_quaternion_print function. |
|
print a ksl_quaternion_t data structure. |
|
print a ksl_quaternion_t data structure with user defined label and options. This function is intended to be called by the ksl_quaternion_debug and ksl_quaternion_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_screw_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_screw_t in release mode, use the ksl_screw_print function. |
|
print a ksl_screw_t data structure. |
|
print a ksl_screw_t data structure with user defined label and options. This function is intended to be called by the ksl_screw_debug and ksl_screw_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_coscrew_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_coscrew_t in release mode, use the ksl_coscrew_print function. |
|
print a ksl_coscrew_t data structure. |
|
print a ksl_coscrew_t data structure with user defined label and options. This function is intended to be called by the ksl_coscrew_debug and ksl_coscrewf_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_SE3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_SE3_t in release mode, use the ksl_SE3_print function. |
|
print a ksl_SE3_t data structure. |
|
print a ksl_SE3_t data structure with user defined label and options. This function is intended to be called by the ksl_SE3_debug and ksl_SE3_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_inertia_t data structure. If NDEBUG is defined, this is a no-op. |
|
print a ksl_inertia_t data structure. |
|
print a full 6x6 spatial inertia matrix |
|
“debug” print a double precision array. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_array_print function. |
|
print a double precision array. |
|
print a double precision array user defined label and options. This function is intended to be called by the ksl_array_debug and ksl_array_print macros. In this function the label and options arguments are required. |
|
“debug” print a double precision 2D array. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_array_print function. |
|
print a double precision 2D array. |
|
print a double precision 2D array user defined label and options. This function is intended to be called by the ksl_array2D_debug and ksl_array2D_print macros. In this function the label and options arguments are required. |
|
“debug” print a triangular array of double precision values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triang_print function. |
|
print a lower triangular array of double precision values. |
|
print a lower triangular double precision matrix stored in contiguous memory with user defined label and options. This function is intended to be called by the ksl_triang_debug and ksl_triang_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_vec4_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec4_t in release mode, use the ksl_vec4_print function. |
|
print a ksl_vec4_t data structure. |
|
print a ksl_vec3_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3_debug and ksl_vec3_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_eulerangles_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_eulerangles_t in release mode, use the ksl_eulerangles_print function. |
|
print a ksl_eulerangles_t data structure. |
|
print a ksl_eulerangles_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_eulerangles_debug and ksl_eulerangles_print macros. In this function the label and options arguments are required. |
-
ksl_vec3_debug(f, v, ...)¶
“debug” print a ksl_vec3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec3_t in release mode, use the ksl_vec3_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_vec3_print(f, v, ...)¶
print a ksl_vec3_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3_print(f, v,NULL, options); or ksl_vec3_print(f, v, “”, options);
-
void ksl_vec3_printWithOptions(FILE *f, const ksl_vec3_t *v, ...)¶
print a ksl_vec3_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3_debug and ksl_vec3_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3_print(f, v, NULL, options); or ksl_vec3_print(f, v, “”, options);
-
ksl_mat3x3_debug(f, m, ...)¶
“debug” print a ksl_mat3x3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat3x3_t in release mode, use the ksl_mat3x3_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat3x3_print(f, m, ...)¶
print a ksl_mat3x3_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: an optional pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_mat3x3_printWithOptions(FILE *f, const ksl_mat3x3_t *m, ...)¶
print a ksl_mat3x3_t data structure. This function is intended to be called by the helper macros ksl_mat3x3_debug and ksl_mat3x3_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
r – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: an optional pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat4x4_debug(f, m, ...)¶
“debug” print a ksl_mat4x4_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat4x4_t in release mode, use the ksl_mat4x4_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat4x4_print(f, m, ...)¶
print a ksl_mat4x4_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat4x4_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_mat4x4_printWithOptions(FILE *f, const ksl_mat4x4_t *d, ...)¶
print a ksl_mat4x4_t data structure with user defined label and options. This function is intended to be called by the ksl_mat4x4_debug and ksl_mat4x4_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
r – [in] a pointer to a ksl_mat4x4_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_quaternion_debug(f, v, ...)¶
“debug” print a ksl_quaternion_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_quaternion_t in release mode, use the ksl_quaternion_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternion_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_quaternion_print(f, v, ...)¶
print a ksl_quaternion_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternion_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_quaternion_printWithOptions(FILE *f, const ksl_quaternion_t *q, ...)¶
print a ksl_quaternion_t data structure with user defined label and options. This function is intended to be called by the ksl_quaternion_debug and ksl_quaternion_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternion_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: an optional pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_screw_debug(f, v, ...)¶
“debug” print a ksl_screw_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_screw_t in release mode, use the ksl_screw_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screw_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_screw_print(f, v, ...)¶
print a ksl_screw_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screw_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_screw_printWithOptions(FILE *f, const ksl_screw_t *s, ...)¶
print a ksl_screw_t data structure with user defined label and options. This function is intended to be called by the ksl_screw_debug and ksl_screw_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screw_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options.
-
ksl_coscrew_debug(f, v, ...)¶
“debug” print a ksl_coscrew_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_coscrew_t in release mode, use the ksl_coscrew_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrew_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_coscrew_print(f, v, ...)¶
print a ksl_coscrew_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrew_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_coscrew_printWithOptions(FILE *f, const ksl_coscrew_t *s, ...)¶
print a ksl_coscrew_t data structure with user defined label and options. This function is intended to be called by the ksl_coscrew_debug and ksl_coscrewf_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrew_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options.
-
ksl_SE3_debug(f, m, ...)¶
“debug” print a ksl_SE3_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_SE3_t in release mode, use the ksl_SE3_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_SE3_print(f, m, ...)¶
print a ksl_SE3_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_SE3_printWithOptions(FILE *f, const ksl_SE3_t *d, ...)¶
print a ksl_SE3_t data structure with user defined label and options. This function is intended to be called by the ksl_SE3_debug and ksl_SE3_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_inertia_debug(f, m, ...)¶
“debug” print a ksl_inertia_t data structure. If NDEBUG is defined, this is a no-op.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_inertia_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_inertia_print(f, m, ...)¶
print a ksl_inertia_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_inertia_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_inertia_printWithOptions(FILE *f, const ksl_inertia_t *m, ...)¶
print a full 6x6 spatial inertia matrix
-
ksl_array_debug(f, n, a, ...)¶
“debug” print a double precision array. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_array_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_array_print(f, n, a, ...)¶
print a double precision array.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_array_printWithOptions(FILE *f, const int n, const double *a, ...)¶
print a double precision array user defined label and options. This function is intended to be called by the ksl_array_debug and ksl_array_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] a double precision poiinter
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_array2D_debug(f, m, n, a, ...)¶
“debug” print a double precision 2D array. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_array_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] array row dimension
n – [in] array column dimension
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_array2D_print(f, m, n, a, ...)¶
print a double precision 2D array.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] row dimension
n – [in] column dimension
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_array2D_printWithOptions(FILE *f, const int rowDim, const int colDim, const double *a, ...)¶
print a double precision 2D array user defined label and options. This function is intended to be called by the ksl_array2D_debug and ksl_array2D_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
rowDim – [in] row dimension
colDim – [in] column dimension
A – [in] a double precision poiinter
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_triang_debug(f, n, a, ...)¶
“debug” print a triangular array of double precision values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triang_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_triang_print(f, n, a, ...)¶
print a lower triangular array of double precision values.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a int*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_triang_printWithOptions(FILE *f, const int n, const double *a, ...)¶
print a lower triangular double precision matrix stored in contiguous memory with user defined label and options. This function is intended to be called by the ksl_triang_debug and ksl_triang_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] array of double precision values
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_vec4_debug(f, v, ...)¶
“debug” print a ksl_vec4_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec4_t in release mode, use the ksl_vec4_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec4_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_vec4_print(f, v, ...)¶
print a ksl_vec4_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec4_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_vec4_print(f, v,NULL, options); or ksl_vec4_print(f, v, “”, options);
-
void ksl_vec4_printWithOptions(FILE *f, const ksl_vec4_t *v, ...)¶
print a ksl_vec3_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3_debug and ksl_vec3_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3_print(f, v, NULL, options); or ksl_vec3_print(f, v, “”, options);
-
ksl_eulerangles_debug(f, v, ...)¶
“debug” print a ksl_eulerangles_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_eulerangles_t in release mode, use the ksl_eulerangles_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_eulerangles_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_eulerangles_print(f, v, ...)¶
print a ksl_eulerangles_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_eulerangles_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_eulerangles_print(f,v, NULL, options); or ksl_eulerangles_print(f, v, “”, options);
-
void ksl_eulerangles_printWithOptions(FILE *f, const ksl_eulerangles_t *v, ...)¶
print a ksl_eulerangles_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_eulerangles_debug and ksl_eulerangles_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_eulerangles_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_eulerangles_print(f, v, NULL,options); or ksl_eulerangles_print(f, v, “”, options);
Single precision¶
“debug” print a ksl_vec3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec3f_t in release mode, use the ksl_vec3f_print function. |
|
print a ksl_vec3f_t data structure. |
|
print a ksl_vec3f_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3f_debug and ksl_vec3f_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_mat3x3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat3x3f_t in release mode, use the ksl_mat3x3f_print function. |
|
print a ksl_mat3x3f_t data structure. |
|
print a ksl_mat3x3f_t data structure with user defined label and options. This function is intended to be called by the helper macros ksl_mat3x3f_debug and ksl_mat3x3f_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_mat4x4f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat4x4_t in release mode, use the ksl_mat4x4_print function. |
|
print a ksl_mat4x4f_t data structure. |
|
print a ksl_mat4x4f_t data structure with user defined label and options. This function is intended to be called by the ksl_mat4x4f_debug and ksl_mat4x4f_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_quaternionf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_quaternionf_t in release mode, use the ksl_quaternionf_print function. |
|
print a ksl_quaternionf_t data structure. |
|
print a ksl_quaternionf_t data structure with user defined label and options. This function is intended to be called by the ksl_quaternionf_debug and ksl_quaternionf_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_screwf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_screwf_t in release mode, use the ksl_screwf_print function. |
|
print a ksl_screwf_t data structure. |
|
print a ksl_screwf_t data structure with user defined label and options. This function is intended to be called by the ksl_screwf_debug and ksl_screwf_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_coscrewf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_coscrewf_t in release mode, use the ksl_coscrewf_print function. |
|
print a ksl_coscrewf_t data structure. |
|
print a ksl_coscrewf_t data structure with user defined label and options. This function is intended to be called by the ksl_coscrewf_debug and ksl_coscrewf_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_SE3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_SE3f_t in release mode, use the ksl_SE3f_print function. |
|
print a ksl_SE3f_t data structure. |
|
print a ksl_SE3f_t data structure with user defined label and options. This function is intended to be called by the ksl_SE3f_debug and ksl_SE3f_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_vec4f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec4f_t in release mode, use the ksl_vec4f_print function. |
|
print a ksl_vec4f_t data structure. |
|
print a ksl_vec3f_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3f_debug and ksl_vec3f_print macros. In this function the label and options arguments are required. |
|
“debug” print a ksl_euleranglesf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_euleranglesf_t in release mode, use the ksl_euleranglesf_print function. |
|
print a ksl_vec3f_t data structure. |
|
print a ksl_euleranglesf_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_euleranglesf_debug and ksl_euleranglesf_print macros. In this function the label and options arguments are required. |
-
ksl_vec3f_debug(f, v, ...)¶
“debug” print a ksl_vec3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec3f_t in release mode, use the ksl_vec3f_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_vec3f_print(f, v, ...)¶
print a ksl_vec3f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3f_print(f, v,NULL, options); or ksl_vec3f_print(f, v, “”, options);
-
void ksl_vec3f_printWithOptions(FILE *f, const ksl_vec3f_t *vi, ...)¶
print a ksl_vec3f_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3f_debug and ksl_vec3f_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3f_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3f_print(f, v, NULL, options); or ksl_vec3f_print(f, v, “”, options);
-
ksl_mat3x3f_debug(f, m, ...)¶
“debug” print a ksl_mat3x3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat3x3f_t in release mode, use the ksl_mat3x3f_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat3x3f_print(f, m, ...)¶
print a ksl_mat3x3f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3f_t datastructure
... – [in] optional arguments, in order:
label: an optional pointer to a const char* label
options: an optional pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_mat3x3f_printWithOptions(FILE *f, const ksl_mat3x3f_t *m, ...)¶
print a ksl_mat3x3f_t data structure with user defined label and options. This function is intended to be called by the helper macros ksl_mat3x3f_debug and ksl_mat3x3f_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
r – [in] a pointer to a ksl_mat3x3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: an optional pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat4x4f_debug(f, m, ...)¶
“debug” print a ksl_mat4x4f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_mat4x4_t in release mode, use the ksl_mat4x4_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat3x3_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_mat4x4f_print(f, m, ...)¶
print a ksl_mat4x4f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_mat4x4f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_mat4x4f_printWithOptions(FILE *f, const ksl_mat4x4f_t *d, ...)¶
print a ksl_mat4x4f_t data structure with user defined label and options. This function is intended to be called by the ksl_mat4x4f_debug and ksl_mat4x4f_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
r – [in] a pointer to a ksl_mat4x4f_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set are set globally.
-
ksl_quaternionf_debug(f, v, ...)¶
“debug” print a ksl_quaternionf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_quaternionf_t in release mode, use the ksl_quaternionf_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternionf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_quaternionf_print(f, v, ...)¶
print a ksl_quaternionf_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternionf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_quaternionf_printWithOptions(FILE *f, const ksl_quaternionf_t *q, ...)¶
print a ksl_quaternionf_t data structure with user defined label and options. This function is intended to be called by the ksl_quaternionf_debug and ksl_quaternionf_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_quaternionf_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options.
-
ksl_screwf_debug(f, v, ...)¶
“debug” print a ksl_screwf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_screwf_t in release mode, use the ksl_screwf_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screwf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_screwf_print(f, v, ...)¶
print a ksl_screwf_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screwf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_screwf_printWithOptions(FILE *f, const ksl_screwf_t *s, ...)¶
print a ksl_screwf_t data structure with user defined label and options. This function is intended to be called by the ksl_screwf_debug and ksl_screwf_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_screwf_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options.
-
ksl_coscrewf_debug(f, v, ...)¶
“debug” print a ksl_coscrewf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_coscrewf_t in release mode, use the ksl_coscrewf_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrewf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_coscrewf_print(f, v, ...)¶
print a ksl_coscrewf_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrewf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_coscrewf_printWithOptions(FILE *f, const ksl_coscrewf_t *s, ...)¶
print a ksl_coscrewf_t data structure with user defined label and options. This function is intended to be called by the ksl_coscrewf_debug and ksl_coscrewf_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_coscrew_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options.
-
ksl_SE3f_debug(f, m, ...)¶
“debug” print a ksl_SE3f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_SE3f_t in release mode, use the ksl_SE3f_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_SE3f_print(f, m, ...)¶
print a ksl_SE3f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_SE3f_printWithOptions(FILE *f, const ksl_SE3f_t *r, ...)¶
print a ksl_SE3f_t data structure with user defined label and options. This function is intended to be called by the ksl_SE3f_debug and ksl_SE3f_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
m – [in] a pointer to a ksl_SE3f_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_vec4f_debug(f, v, ...)¶
“debug” print a ksl_vec4f_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_vec4f_t in release mode, use the ksl_vec4f_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec4f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_vec4f_print(f, v, ...)¶
print a ksl_vec4f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec4f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_vec4f_print(f, v,NULL, options); or ksl_vec4f_print(f, v, “”, options);
-
void ksl_vec4f_printWithOptions(FILE *f, const ksl_vec4f_t *vi, ...)¶
print a ksl_vec3f_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_vec3f_debug and ksl_vec3f_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3f_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3f_print(f, v, NULL, options); or ksl_vec3f_print(f, v, “”, options);
-
ksl_euleranglesf_debug(f, v, ...)¶
“debug” print a ksl_euleranglesf_t data structure. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print a ksl_euleranglesf_t in release mode, use the ksl_euleranglesf_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_euleranglesf_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_euleranglesf_print(f, v, ...)¶
print a ksl_vec3f_t data structure.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_vec3f_t datastructure
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options. To pass an options struct with no label, call ksl_vec3f_print(f, v,NULL, options); or ksl_vec3f_print(f, v, “”, options);
-
void ksl_euleranglesf_printWithOptions(FILE *f, const ksl_euleranglesf_t *vi, ...)¶
print a ksl_euleranglesf_t data structure with user defined label and options. This function intended to be called by the helper macros ksl_euleranglesf_debug and ksl_euleranglesf_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
v – [in] a pointer to a ksl_euleranglesf_t datastructure
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set in the global print options. To pass an options struct with no label, call ksl_euleranglesf_print(f, v, NULL,options); or ksl_euleranglesf_print(f, v, “”, options);
Integers¶
“debug” print an array of integers. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_arrayi_print function. |
|
print an array of integers. |
|
print an array of integers with user defined label and options. This function is intended to be called by the ksl_arrayi_debug and ksl_arrayi_print macros. In this function the label and options arguments are required. |
|
“debug” print a triangular array of integer values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triangi_print function. |
|
print a lower triangular array of integers. |
|
utility to print a lower triangular matrix of integers stored in a linear array |
-
ksl_arrayi_debug(f, n, a, ...)¶
“debug” print an array of integers. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_arrayi_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] a pointer to a double*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_arrayi_print(f, n, a, ...)¶
print an array of integers.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] a pointer to a int*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_arrayi_printWithOptions(FILE *f, const int n, const int *a, ...)¶
print an array of integers with user defined label and options. This function is intended to be called by the ksl_arrayi_debug and ksl_arrayi_print macros. In this function the label and options arguments are required.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] number of values to print
a – [in] array of integers
... – [in] optional arguments, in order:
label: pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL, the options are set globally.
-
ksl_triangi_debug(f, n, a, ...)¶
“debug” print a triangular array of integer values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triangi_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a int*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_triangi_print(f, n, a, ...)¶
print a lower triangular array of integers.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a int*
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_triangi_printWithOptions(FILE *f, const int n, const int *a, ...)¶
utility to print a lower triangular matrix of integers stored in a linear array
Booleans¶
“debug” print a triangular array of boolean values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triangb_print function. |
|
print a lower triangular array of booleans. |
|
utility to print a lower triangular matrix of integers stored in a linear array |
-
ksl_triangb_debug(f, n, a, ...)¶
“debug” print a triangular array of boolean values. If NDEBUG is defined, this function is converted to a no-op and nothing will be output. If it is desired to print an array in release mode, use the ksl_triangb_print function.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a boolean array
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
ksl_triangb_print(f, n, a, ...)¶
print a lower triangular array of booleans.
- Parameters:
f – [in] a file pointer (e.g. stdout, stderr, etc.)
n – [in] row/column dimension of nxn matrix
a – [in] a pointer to a boolean array
... – [in] optional arguments, in order:
label: optional pointer to a const char* label
options: a pointer to a ksl_print_options_t struct containing print options. If the pointer is NULL or not present, the options are set in the global print options.
-
void ksl_triangb_printWithOptions(FILE *f, const int n, const bool *a, ...)¶
utility to print a lower triangular matrix of integers stored in a linear array