[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN doc/documentation.h internal/debug.hh
From: |
Edward Rosten |
Subject: |
[Toon-members] TooN doc/documentation.h internal/debug.hh |
Date: |
Wed, 14 Oct 2009 15:26:37 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 09/10/14 15:26:37
Modified files:
doc : documentation.h
internal : debug.hh
Log message:
Add the more intuitive TOON_INITIALIZE_NAN as a synonym for
TOON_INITIALIZE_QNAN.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/doc/documentation.h?cvsroot=toon&r1=1.38&r2=1.39
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/debug.hh?cvsroot=toon&r1=1.8&r2=1.9
Patches:
Index: doc/documentation.h
===================================================================
RCS file: /cvsroot/toon/TooN/doc/documentation.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- doc/documentation.h 23 Sep 2009 12:46:28 -0000 1.38
+++ doc/documentation.h 14 Oct 2009 15:26:37 -0000 1.39
@@ -364,7 +364,7 @@
TooN does not initialize data in a Vector or Matrix. For debugging
purposes
the following macros can be defined:
- - \c TOON_INITIALIZE_QNAN Sets every element of newly defined Vectors or
+ - \c TOON_INITIALIZE_QNAN or TOON_INITIALIZE_NAN Sets every element of
newly defined Vectors or
Matrixs to quiet NaN, if it exists, and 0 otherwise. Your code will
not compile
if you have made a Vector or Matrix of a type which cannot be
constructed
from a number.
Index: internal/debug.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/debug.hh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- internal/debug.hh 14 Oct 2009 15:25:13 -0000 1.8
+++ internal/debug.hh 14 Oct 2009 15:26:37 -0000 1.9
@@ -32,7 +32,7 @@
for(int i=0; i < n; i++)
data[i] = numeric_limits<P>::signaling_NaN();
}
- #elif defined TOON_INITIALIZE_QNAN
+ #elif defined TOON_INITIALIZE_QNAN || defined TOON_INITIALIZE_NAN
template<class P> static void debug_initialize(P* data, int n)
{
using std::numeric_limits;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN doc/documentation.h internal/debug.hh,
Edward Rosten <=