defines.h File Reference

Introduction

Basic definitions used for the rest of files.

Definition in file defines.h.

Macros

#define USE_DOUBLE   0
 Set the type to represent reasl. More...
 
#define real   float
 The type representing reals in single precision.

 
#define sign(x)   ({ typeof (x) _x = (x); (_x>0?1:(_x<0?-1:0)); })
 Sign of a number. More...
 

Typedefs

typedef Eigen::Matrix< real, 3, 3 > Matrix3
 A 3x3 matrix either in double or single precision.
 
typedef Eigen::Matrix< real, 3, 1 > Vector3
 A vector of 3 elements either in double or single precision.
 
typedef Eigen::Matrix< real, 4, 4 > Matrix4
 A 4x4 matrix either in double or single precision.
 
typedef Eigen::Matrix< real, 4, 1 > Vector4
 A vector of 4 elements either in double or single precision.
 

Macro Definition Documentation

◆ USE_DOUBLE

#define USE_DOUBLE   0

If set to 1 reals will be represented by doubles and if not by floats.

Definition at line 28 of file defines.h.

◆ sign

#define sign (   x)    ({ typeof (x) _x = (x); (_x>0?1:(_x<0?-1:0)); })

Sign of a number.

Parameters
xThe number/expression whose sign we want to find out.

Definition at line 58 of file defines.h.