mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 20:12:52 +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).
14 lines
439 B
Diff
14 lines
439 B
Diff
diff --git a/testsuite/stencil-et.cpp b/testsuite/stencil-et.cpp
|
|
index b23e979..fe6b5ed 100644
|
|
--- a/testsuite/stencil-et.cpp
|
|
+++ b/testsuite/stencil-et.cpp
|
|
@@ -44,7 +44,7 @@ void test_expr(const T1& d1, const T2& d2)
|
|
BZTEST(all(d1==d2));
|
|
}
|
|
*/
|
|
-#define test_expr(d1,d2) BZTEST(all((d1)==(d2)));
|
|
+#define test_expr(d1,d2) BZTEST(all((d1)-(d2)<=1e-7));
|
|
|
|
// Test two vector expressions for equality
|
|
template<typename T1, typename T2>
|