Changeset 1475 for trunk/test_more


Ignore:
Timestamp:
Aug 4, 2009 11:45:48 AM (11 years ago)
Author:
bradbell
Message:

trunk: Fix bug in VecAD sparsity and documention on web site.

for_sparse_jac.cpp: test that demonstrated bug in VecAD sparsity.
build.sh: fix so all four versions of docs are on website.
simple_vector.omh: fix white space in documentation.
whats_new_09.omh: user's view of the changes.
prototype_op.hpp: prototype for sparsity for LdpOp? and LdvOp?.
for_jac_sweep.hpp: user new sparsity routines for LdpOp? and LdvOp? operations.
load_op.hpp: new forward sparsity routines LdpOp? and LdvOp? operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/for_sparse_jac.cpp

    r1470 r1475  
    179179
    180180        // dimension of the range space
    181         size_t m = 2;
     181        size_t m = 3;
    182182
    183183        // inialize the vector as zero
     
    213213        Check[index * n + 2] = false;
    214214        index++;
     215
     216        // Second component depends on the vector Z
    215217        AD<double> zero(0);
    216         Y[index]             = Z[zero];
     218        Y[index]             = Z[zero]; // Load by a parameter
     219        Check[index * n + 0] = false;
     220        Check[index * n + 1] = true;
     221        Check[index * n + 2] = true;
     222        index++;
     223
     224        // Third component depends on the vector Z
     225        Y[index]             = Z[ X[0] ]; // Load by a variable
    217226        Check[index * n + 0] = false;
    218227        Check[index * n + 1] = true;
Note: See TracChangeset for help on using the changeset viewer.