mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
f89eac32a7
Fast multi-dimensional array library for C++ Blitz++ is a C++ class library for scientific computing which provides performance on par with Fortran 77/90. It uses template techniques to achieve high performance. Blitz++ provides dense arrays and vectors, random number generators, and small vectors (useful for representing multicomponent or vector fields).
34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
diff -ur blitz-0.10/blitz/bzdebug.h blitz-0.10.new/blitz/bzdebug.h
|
|
--- blitz-0.10/blitz/bzdebug.h 2012-05-11 22:11:13.000000000 +0200
|
|
+++ blitz-0.10.new/blitz/bzdebug.h 2012-06-28 15:42:38.060656045 +0200
|
|
@@ -117,15 +117,15 @@
|
|
}
|
|
}
|
|
|
|
- #define BZASSERT(X) checkAssert(X, __FILE__, __LINE__)
|
|
- #define BZPRECONDITION(X) checkAssert(X, __FILE__, __LINE__)
|
|
- #define BZPOSTCONDITION(X) checkAssert(X, __FILE__, __LINE__)
|
|
- #define BZSTATECHECK(X,Y) checkAssert(X == Y, __FILE__, __LINE__)
|
|
+ #define BZASSERT(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
|
+ #define BZPRECONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
|
+ #define BZPOSTCONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
|
+ #define BZSTATECHECK(X,Y) blitz::checkAssert(X == Y, __FILE__, __LINE__)
|
|
#define BZPRECHECK(X,Y) \
|
|
{ \
|
|
if ((assertFailMode == false) && (!(X))) \
|
|
BZ_STD_SCOPE(cerr) << Y << BZ_STD_SCOPE(endl); \
|
|
- checkAssert(X, __FILE__, __LINE__); \
|
|
+ blitz::checkAssert(X, __FILE__, __LINE__); \
|
|
}
|
|
|
|
#define BZ_DEBUG_MESSAGE(X) \
|
|
@@ -138,7 +138,7 @@
|
|
}
|
|
|
|
#define BZ_DEBUG_PARAM(X) X
|
|
- #define BZ_PRE_FAIL checkAssert(0)
|
|
+ #define BZ_PRE_FAIL blitz::checkAssert(0)
|
|
#define BZ_ASM_DEBUG_MARKER
|
|
|
|
#elif defined(BZ_DEBUG)
|