[CppAD] incorrect assert in user_atomic.hpp::rev_hes_sparse

bradbell at seanet.com bradbell at seanet.com
Sat Mar 12 18:35:43 EST 2011


I agree, have tested, and checked in your correction. See
    https://projects.coin-or.org/CppAD/changeset/1899

Thanks.

> Hi,
>
> with the current trunk, I get an assert when using the user-atomic
> functions.
> In user_atomic::rev_hes_sparse() at line 1256 you have
>    CPPAD_ASSERT_UNKNOWN( r.size() >= q );
>
> But according to documentation at
> http://www.coin-or.org/CppAD/Doc/user_atomic.xml, r.size() >= n is
> required, not >= q.
> If I change this assert to
>    CPPAD_ASSERT_UNKNOWN( r.size() >= n );
> things seem fine.
>
> Stefan
>





More information about the CppAD mailing list