Sind Gleitkommazahlen sortierbar? Wegen NaN gibt es keine Ordnung und das Sortieren mit NaN im Datensatz schlägt fehlt. Aber man kann sich schnell selbst eine Ordnung bauen: -1.79769e+308 0 -0 0.333333 1 2 nan 4.94066e-324 2.22507e-308 2.22045e-16 1.79769e+308 inf is sorted true
27.09.2018
C++ Guns: Are floating point numbers sortable?
Comments Off on C++ Guns: Are floating point numbers sortable?
13.09.2018
FORTRAN: GDB conditional watchpoint
To set a conditional watchpoint on local variable i. Example Code: Compile with -ggdb Set a breakpoint on subroutine "func". After the debugger stop on this point, the local variable "i" is in scope so one can set a watchpoint. $ gdb ./example (gdb) break func Breakpoint 1 at 0x8bb: file gdb.F90, line 4. ODER […]
Comments Off on FORTRAN: GDB conditional watchpoint