Skip to content

Commit

Permalink
Merge pull request #18 from elvisdukaj/feature/use_macro_to_set_defau…
Browse files Browse the repository at this point in the history
…lt_precision

Use a macro to set the DefaultPrecision
  • Loading branch information
edrosten authored Jun 23, 2024
2 parents 370dcd9 + 793418d commit 2982ecc
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 2982ecc

Please sign in to comment.