COIN-OR::LEMON - Graph Library

Opened 15 years ago

Last modified 15 years ago

#173 closed defect

rnd(1000) gives faulty result — at Version 1

Reported by: Alpar Juttner Owned by: Alpar Juttner
Priority: critical Milestone: LEMON 1.1 release
Component: core Version: release branch 1.0
Keywords: Cc:
Revision id: 4b2382fd80ef and r1.0

Description (last modified by Alpar Juttner)

If you call the operator() with an integer value, it will give faulty result (i.e. it is 0 all the time)

Change History (2)

Changed 15 years ago by Alpar Juttner

Attachment: c4aa9f097ef1.patch added

comment:1 Changed 15 years ago by Alpar Juttner

Description: modified (diff)
Priority: majorcritical
Status: newassigned

[c4aa9f097ef1] fixes this error by

  • changing using double as the parameters and return value of operator() instead of a template parameters.
  • I just removed real<Num>(Num) and real<Num>(Num,Num), as they suffer from the same problem and they are of no practical use.

Please review the path so that it could be merge to the main as well as the 1.0 branch.

Note: See TracTickets for help on using tickets.