Skip to content
Snippets Groups Projects
Commit d5a991af authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Merge branch 'documentation_scalar' into 'devel'

Removing typedeff Scalar different than double

Closes #71

See merge request !264
parents dec7dc3f f78e2e3a
No related branches found
No related tags found
1 merge request!264Removing typedeff Scalar different than double
Pipeline #2803 passed
...@@ -31,19 +31,11 @@ namespace wolf { ...@@ -31,19 +31,11 @@ namespace wolf {
/** /**
* \brief scalar type for the Wolf project * \brief scalar type for the Wolf project
* *
* This typedef makes it possible to recompile the whole Wolf project with double, float, or other precisions.
*
* To change the project precision, just edit wolf.h and change the precision of this typedef.
*
* Do NEVER forget to use Wolf scalar definitions when you code!!! * Do NEVER forget to use Wolf scalar definitions when you code!!!
* *
* Do NEVER use plain Eigen scalar types!!! (This is redundant with the above. But just to make sure you behave!) * Do NEVER use plain Eigen scalar types!!! (This is redundant with the above. But just to make sure you behave!)
*
* The ONLY exception to this rule is when you need special precision. The ONLY example by now is the time stamp which uses double.
*/ */
//typedef float Scalar; // Use this for float, 32 bit precision typedef double Scalar;
typedef double Scalar; // Use this for double, 64 bit precision
//typedef long double Scalar; // Use this for long double, 128 bit precision
/** /**
* \brief Vector and Matrices size type for the Wolf project * \brief Vector and Matrices size type for the Wolf project
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment