Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a macro to set the DefaultPrecision #18

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading