Changeset e80719 in git for kernel


Ignore:
Timestamp:
Jul 15, 2017, 3:56:01 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
831a0c505e7b934d8d463db69d52b8d5c48fb7cd
Parents:
afa00ecb49732c879af3b3be9b6aaa2be71e9735
Message:
use ABS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/linear_algebra/MinorInterface.cc

    rafa00e re80719  
    101101                                             omitting zero minors */
    102102  bool duplicatesOk = (allDifferent ? false : true);
    103   int kk = ((k < 0) ? -k : k); /* absolute value of k */
     103  int kk = ABS(k); /* absolute value of k */
    104104
    105105  /* looping over all minors: */
     
    155155                                             requested, omitting zero minors */
    156156  bool duplicatesOk = (allDifferent ? false : true);
    157   int kk = ((k < 0) ? -k : k); /* absolute value of k */
     157  int kk = ABS(k); /* absolute value of k */
    158158#ifdef COUNT_AND_PRINT_OPERATIONS
    159159  printCounters ("starting", true);
     
    332332                                             requested, omitting zero minors */
    333333  bool duplicatesOk = (allDifferent ? false : true);
    334   int kk = ((k < 0) ? -k : k); /* absolute value of k */
     334  int kk = ABS(k); /* absolute value of k */
    335335
    336336  /* looping over all minors: */
     
    389389                                             requested, omitting zero minors */
    390390  bool duplicatesOk = (allDifferent ? false : true);
    391   int kk = ((k < 0) ? -k : k); /* absolute value of k */
     391  int kk = ABS(k); /* absolute value of k */
    392392#ifdef COUNT_AND_PRINT_OPERATIONS
    393393  printCounters ("starting", true);
Note: See TracChangeset for help on using the changeset viewer.