Changeset 1526


Ignore:
Timestamp:
Sep 22, 2009 8:41:59 AM (11 years ago)
Author:
bradbell
Message:

trunk: Change 'from node' to set.

makefile.in: update date for corresponding makfile.am.

Location:
trunk/cppad/local
Files:
7 edited

Legend:

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

    r1525 r1526  
    323323\param sparsity
    324324\b Input:
    325 if y_2 is a variable, the from node with index \a arg[4] contains
    326 the sparsity bit pattern corresponding to y_2.
     325if y_2 is a variable, the set with index t is
     326the sparsity pattern corresponding to y_2.
    327327This identifies which of the independent variables the variable y_2
    328328depends on.
    329329\n
    330330\b Input:
    331 if y_3 is a variable, the from node with index \a arg[5] contains
    332 the sparsity bit pattern corresponding to y_3.
     331if y_3 is a variable, the set with index t is
     332the sparsity pattern corresponding to y_3.
    333333This identifies which of the independent variables the variable y_3
    334334depends on.
    335335\n
    336336\b Output:
    337 The from node with index \a i_z containts
    338 the sparsity bit pattern corresponding to z.
     337The set with index T is
     338the sparsity pattern corresponding to z.
    339339This identifies which of the independent variables the variable z
    340340depends on.
     
    405405
    406406\param sparsity
    407 if y_2 is a variable, the from node with index \a arg[4] contains
    408 the sparsity bit pattern corresponding to y_2.
     407if y_2 is a variable, the set with index t is
     408the sparsity pattern corresponding to y_2.
    409409This identifies which of the dependent variables depend on the variable y_2.
    410410On input, this pattern corresponds to the function G.
     
    412412\n
    413413\n
    414 if y_3 is a variable, the from node with index \a arg[5] contains
    415 the sparsity bit pattern corresponding to y_3.
     414if y_3 is a variable, the set with index t is
     415the sparsity pattern corresponding to y_3.
    416416This identifies which of the dependent variables depeond on the variable y_3.
    417417On input, this pattern corresponds to the function G.
     
    419419\n
    420420\b Output:
    421 The from node with index \a i_z containts
    422 the sparsity bit pattern corresponding to z.
     421The set with index T is
     422the sparsity pattern corresponding to z.
    423423This identifies which of the dependent variables depend on the variable z.
    424424On input and output, this pattern corresponds to the function G.
  • trunk/cppad/local/for_jac_sweep.hpp

    r1524 r1526  
    4242is the total number of variables on the tape; i.e.,
    4343\a play->num_rec_var().
    44 This is also the number of from nodes in \a var_sparsity.
    4544
    4645\param play
     
    6059\b Input: For j = 1 , ... , \a n,
    6160the sparsity pattern for the independent variable with index (j-1)
    62 corresponds to the from node with index j in \a var_sparsity.
     61corresponds to the set with index j in \a var_sparsity.
    6362\n
    6463\n
    6564\b Output: For i = \a n + 1 , ... , \a numvar - 1,
    6665the sparsity pattern for the variable with index i on the tape
    67 corresponds to the from node with index i in \a var_sparsity.
     66corresponds to the set with index i in \a var_sparsity.
     67
     68\par Checked Assertions:
     69\li numvar == var_sparsity.n_set()
     70\li numvar == play->num_rec_var()
    6871*/
    6972
     
    8689
    8790        // check numvar argument
    88         CPPAD_ASSERT_UNKNOWN( play->num_rec_var() == numvar );
     91        CPPAD_ASSERT_UNKNOWN( play->num_rec_var()  == numvar );
     92        CPPAD_ASSERT_UNKNOWN( var_sparsity.n_set() == numvar );
    8993
    9094        // set the number of operators
  • trunk/cppad/local/prototype_op.hpp

    r1525 r1526  
    10431043\param i_z
    10441044is the AD variable index corresponding to the variable z; i.e.,
    1045 it is the from node index for z in \a var_sparsity.
     1045the set with index \a i_z in \a var_sparsity is the sparsity pattern
     1046correpsonding to z.
    10461047
    10471048\param arg
     
    13601361\a arg[0]
    13611362variable index corresponding to the left operand for this operator;
    1362 i.e. the from node index in the spasity patterns correspoding to x.
     1363i.e. the set with index \a arg[0] in \a var_sparsity
     1364is the spasity pattern correspoding to x.
    13631365\n
    13641366\n arg[1]
  • trunk/cppad/local/rev_hes_sweep.hpp

    r1525 r1526  
    6565(for all the variables on the tape),
    6666the forward Jacobian sparsity pattern for the variable with index i
    67 corresponds to the from node with index i in \a for_jac_sparse.
     67corresponds to the set with index i in \a for_jac_sparse.
    6868
    6969\param RevJac
     
    8080\param rev_hes_sparse
    8181The reverse Hessian sparsity pattern for the variable with index i
    82 corresponds to the from node with index i in \a rev_hes_sparse.
     82corresponds to the set with index i in \a rev_hes_sparse.
    8383\n
    8484\n
     
    132132
    133133        // vecad_sparsity contains a sparsity pattern for each VecAD object.
    134         // vecad_ind maps a VecAD index (the beginning of the
    135         // VecAD object) to the vecad_sparsity from index for the VecAD object.
     134        // vecad_ind maps a VecAD index (beginning of the VecAD object)
     135        // to the index for the corresponding set in vecad_sparsity.
    136136        size_t num_vecad_ind   = play->num_rec_vecad_ind();
    137137        size_t num_vecad_vec   = play->num_rec_vecad_vec();
  • trunk/cppad/local/rev_jac_sweep.hpp

    r1525 r1526  
    6262(all the variables on the tape)
    6363the forward Jacobian sparsity pattern for variable i
    64 corresponds to the from node with index i in \a var_sparsity.
     64corresponds to the set with index i in \a var_sparsity.
    6565\b
    6666\b
     
    105105
    106106        // vecad_sparsity contains a sparsity pattern for each VecAD object.
    107         // vecad_ind maps a VecAD index (the beginning of the
    108         // VecAD object) to the vecad_sparsity from index for the VecAD object.
     107        // vecad_ind maps a VecAD index (beginning of the VecAD object)
     108        // to the index of the corresponding set in vecad_sparsity.
    109109        size_t num_vecad_ind   = play->num_rec_vecad_ind();
    110110        size_t num_vecad_vec   = play->num_rec_vecad_vec();
  • trunk/cppad/local/sparse_binary_op.hpp

    r1525 r1526  
    3636\param i_z
    3737variable index corresponding to the result for this operation;
    38 i.e. the from node index in sparsity corresponding to z.
     38i.e., z.
    3939
    4040\param arg
    4141\a arg[0]
    4242variable index corresponding to the left operand for this operator;
    43 i.e. the from node index in sparsity corresponding to x.
     43i.e., x.
    4444\n
    4545\n arg[1]
    4646variable index corresponding to the right operand for this operator;
    47 i.e. the from node index in sparsity corresponding to y.
     47i.e., y.
    4848
    4949\param sparsity
    5050\b Input:
    51 The from node with index \a arg[0] in \a sparsity
    52 contains the sparsity bit pattern for x.
     51The set with index \a arg[0] in \a sparsity
     52is the sparsity bit pattern for x.
    5353This identifies which of the independent variables the variable x
    5454depends on.
     
    5656\n
    5757\b Input:
    58 The from node with index \a arg[1] in \a sparsity
    59 contains the sparsity bit pattern for y.
     58The set with index \a arg[1] in \a sparsity
     59is the sparsity bit pattern for y.
    6060This identifies which of the independent variables the variable y
    6161depends on.
     
    6363\n
    6464\b Output:
    65 The from node with index \a i_z in \a sparsity
    66 contains the sparsity bit pattern for z.
     65The set with index \a i_z in \a sparsity
     66is the sparsity bit pattern for z.
    6767This identifies which of the independent variables the variable z
    6868depends on.
     
    115115\param i_z
    116116variable index corresponding to the result for this operation;
    117 i.e., the from node index in sparsity pattern corresponding to z.
     117i.e., z.
    118118
    119119\param arg
    120120\a arg[0]
    121121variable index corresponding to the left operand for this operator;
    122 i.e., the from node index in sparsity pattern corresponding to x.
     122i.e., x.
    123123
    124124\n
    125125\n arg[1]
    126126variable index corresponding to the right operand for this operator;
    127 i.e., the from node index in sparsity pattern corresponding to y.
     127i.e., y.
    128128
    129129\param sparsity
  • trunk/cppad/local/sparse_unary_op.hpp

    r1524 r1526  
    3939\param i_z
    4040variable index corresponding to the result for this operation;
    41 i.e. the from node index in sparsity corresponding to z.
     41i.e., z.
    4242
    4343\param i_x
    4444variable index corresponding to the argument for this operator;
    45 i.e. the from node index in sparsity corresponding to x.
     45i.e., x.
    4646
    4747
    4848\param sparsity
    49 \b Input: The from node with index \a arg[0] in \a sparsity
    50 contains the sparsity bit pattern for x.
     49\b Input: The set with index \a arg[0] in \a sparsity
     50is the sparsity bit pattern for x.
    5151This identifies which of the independent variables the variable x
    5252depends on.
    5353\n
    5454\n
    55 \b Output: The from node with index \a i_z in \a sparsity
    56 contains the sparsity bit pattern for z.
     55\b Output: The set with index \a i_z in \a sparsity
     56is the sparsity bit pattern for z.
    5757This identifies which of the independent variables the variable z
    5858depends on.
     
    104104\param sparsity
    105105\b Input:
    106 The from node with index \a i_z in \a sparsity
     106The set with index \a i_z in \a sparsity
    107107is the sparsity bit pattern for G with respect to the variable z.
    108108\n
    109109\b Input:
    110 The from node with index \a i_x in \a sparsity
     110The set with index \a i_x in \a sparsity
    111111is the sparsity bit pattern for G with respect to the variable x.
    112112\n
    113113\b Output:
    114 The from node with index \a i_x in \a sparsity
     114The set with index \a i_x in \a sparsity
    115115is the sparsity bit pattern for H with respect to the variable x.
    116116
Note: See TracChangeset for help on using the changeset viewer.