Changeset 3760 for trunk/test_more
 Timestamp:
 Nov 30, 2015 11:12:28 PM (4 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test_more/cppad_eigen.cpp
r3070 r3760 1 / * $Id$ */1 // $Id$ 2 2 /*  3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 20031 3Bradley M. Bell3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 200315 Bradley M. Bell 4 4 5 5 CppAD is distributed under multiple licenses. This distribution is under 6 the terms of the 6 the terms of the 7 7 Eclipse Public License Version 1.0. 8 8 … … 33 33 ok &= traits::MulCost == 2; 34 34 35 ok &= traits::epsilon() == 35 ok &= traits::epsilon() == 36 36 std::numeric_limits<double>::epsilon(); 37 ok &= traits::dummy_precision() == 37 ok &= traits::dummy_precision() == 38 38 100.* std::numeric_limits<double>::epsilon(); 39 ok &= traits::highest() == 39 ok &= traits::highest() == 40 40 std::numeric_limits<double>::max(); 41 ok &= traits::lowest() == 41 ok &= traits::lowest() == 42 42 std::numeric_limits<double>::min(); 43 43 … … 49 49 50 50 // Outputing a matrix used to fail before partial specialization of 51 // struct significant_decimals_default_impl in cppad_eigen.hpp. 51 // struct significant_decimals_default_impl in cppad_eigen.hpp. 52 52 Matrix< AD<double>, 1, 1> X; 53 53 X(0, 0) = AD<double>(1); … … 56 56 ok &= "1" == stream_out.str(); 57 57 58 # if ! CPPAD_ IMPLICIT_CTOR_FROM_ANY_TYPE58 # if ! CPPAD_DEPRECATED 59 59 // multiplying three matrices together used to cause warning 60 60 // before making ctor from arbitrary type to AD<Base> explicit. … … 64 64 B(0,0) = 2.0; 65 65 C(0,0) = 3.0; 66 D = A * B * C; 66 D = A * B * C; 67 67 ok &= D(0,0) == 6.0 ; 68 68 # endif 69 69 70 70 return ok; 71 71 }
Note: See TracChangeset
for help on using the changeset viewer.