Changeset 291 for trunk/ADOL-C


Ignore:
Timestamp:
Jan 16, 2012 6:45:07 AM (8 years ago)
Author:
kulshres
Message:

Return number of colours used if options[2] == -1 in sparse_jac

This may come in handy if the user wants to allocate memory etc.
before calling again with repeat == 1.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/sparse/sparsedrivers.cpp

    r267 r291  
    320320                                  &(sJinfos.seed_clms), "SMALLEST_LAST","ROW_PARTIAL_DISTANCE_TWO");
    321321          sJinfos.seed_clms = indep;
     322          ret_val = sJinfos.seed_rows;
    322323        } 
    323324      else
     
    326327                                &(sJinfos.seed_clms), "SMALLEST_LAST","COLUMN_PARTIAL_DISTANCE_TWO");
    327328          sJinfos.seed_rows = depen;
     329          ret_val = sJinfos.seed_clms;
    328330        }
    329331     
Note: See TracChangeset for help on using the changeset viewer.