Changeset 2934


Ignore:
Timestamp:
Oct 12, 2013 2:19:29 PM (6 years ago)
Author:
bradbell
Message:

op_code.hpp: Improve comments about CSumOp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/op_code.hpp

    r2910 r2934  
    6060        CosOp,    //  cos(variable)
    6161        CoshOp,   // cosh(variable)
    62         CSumOp,   // Cummulative summation (has variable number of arguments)
     62        CSumOp,   // Cummulative summation
     63        // arg[0] = number of addition variables in summation
     64        // arg[1] = number of subtraction variables in summation
     65        // arg[2] = index of parameter that initializes summation
     66        // arg[3] -> arg[2+arg[0]] = index for positive variables
     67        // arg[3+arg[0]] -> arg[2+arg[0]+arg[1]] = index for minus variables
     68        // arg[3+arg[0]+arg[1]] = arg[0] + arg[1]
    6369        DisOp,    //  discrete::eval(index, variable)
    6470        DivpvOp,  //      parameter  / variable
     
    489495                ind[1] = number of subtraction variables in summation
    490496                ind[2] = index of parameter that initializes summation
    491                 ind[3], ... , ind[2+ind[0]-1] = index for positive variables
    492                 ind[3+ind[0]], ..., ind[2+ind[0]+ind[1]-1] = negative variables
     497                ind[3], ... , ind[2+ind[0]] = index for positive variables
     498                ind[3+ind[0]], ..., ind[2+ind[0]+ind[1]] = negative variables
    493499                ind[3+ind[0]+ind[1]] == ind[0] + ind[1]
    494500                */
Note: See TracChangeset for help on using the changeset viewer.