Skip to content

Commit

Permalink
Use a macro to set the DefaultPrecision
Browse files Browse the repository at this point in the history
  • Loading branch information
elvisdukaj committed Jun 12, 2024
1 parent 370dcd9 commit 793418d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TooN/TooN.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ namespace TooN {
}

///All TooN classes default to using this precision for computations and storage.
typedef double DefaultPrecision;
#if defined TOON_DEFAULT_PRECISION_TYPE
typedef TOON_DEFAULT_PRECISION_TYPE DefaultPrecision;
#else
typedef double DefaultPrecision;
#endif

#if defined TOON_FORTRAN_INTEGER && defined TOON_CLAPACK
#error Error: both TOON_FORTRAN_INTEGER and TOON_CLAPACK defined
Expand Down

0 comments on commit 793418d

Please sign in to comment.