<?xml version='1.0'?> <?xml-stylesheet type='text/xsl' href='pmathml.xsl'?> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>Speed Test Derivatives Using Fadbad</title> <meta name="description" id="description" content="Speed Test Derivatives Using Fadbad"/> <meta name="keywords" id="keywords" content=" speed test fadbad "/> <style type='text/css'> body { color : black } body { background-color : white } A:link { color : blue } A:visited { color : purple } A:active { color : purple } </style> <script type='text/javascript' language='JavaScript' src='_speed_fadbad_xml.js'> </script> </head> <body> <table><tr> <td> <a href="http://www.coin-or.org/CppAD/" target="_top"><img border="0" src="_image.gif"/></a> </td> <td><a href="cppad_sparse_jacobian.cpp.xml" target="_top">Prev</a> </td><td><a href="fadbad_det_minor.cpp.xml" target="_top">Next</a> </td><td> <select onchange='choose_across0(this)'> <option>Index-></option> <option>contents</option> <option>reference</option> <option>index</option> <option>search</option> <option>external</option> </select> </td> <td> <select onchange='choose_up0(this)'> <option>Up-></option> <option>CppAD</option> <option>Appendix</option> <option>speed</option> <option>speed_fadbad</option> </select> </td> <td> <select onchange='choose_down3(this)'> <option>CppAD-></option> <option>Install</option> <option>Introduction</option> <option>AD</option> <option>ADFun</option> <option>library</option> <option>Example</option> <option>configure</option> <option>Appendix</option> </select> </td> <td> <select onchange='choose_down2(this)'> <option>Appendix-></option> <option>Faq</option> <option>speed</option> <option>Theory</option> <option>glossary</option> <option>Bib</option> <option>Bugs</option> <option>WishList</option> <option>whats_new</option> <option>include_deprecated</option> <option>License</option> </select> </td> <td> <select onchange='choose_down1(this)'> <option>speed-></option> <option>speed_main</option> <option>speed_utility</option> <option>speed_double</option> <option>speed_adolc</option> <option>speed_cppad</option> <option>speed_fadbad</option> <option>speed_sacado</option> </select> </td> <td> <select onchange='choose_down0(this)'> <option>speed_fadbad-></option> <option>fadbad_det_minor.cpp</option> <option>fadbad_det_lu.cpp</option> <option>fadbad_ode.cpp</option> <option>fadbad_poly.cpp</option> <option>fadbad_sparse_hessian.cpp</option> <option>fadbad_sparse_jacobian.cpp</option> </select> </td> <td> <select onchange='choose_current0(this)'> <option>Headings-></option> <option>Purpose</option> <option>FadbadDir</option> <option>C++ Compiler Flags</option> <option>Contents</option> </select> </td> </tr></table><br/> <center><b><big><big>Speed Test Derivatives Using Fadbad</big></big></b></center> <br/> <b><big><a name="Purpose" id="Purpose">Purpose</a></big></b> <br/> CppAD has a set of speed tests that are used to compare Fadbad with other AD packages. This section links to the source code the Fadbad speed tests (any suggestions to make the Fadbad results faster are welcome). <br/> <br/> <b><big><a name="FadbadDir" id="FadbadDir">FadbadDir</a></big></b> <br/> To run these tests, you must include the <code><font color="blue">configure</font></code> command line option <code><font color="blue"><span style='white-space: nowrap'><br/>      FADBAD_DIR=</span></font></code><i><span style='white-space: nowrap'>FadbadDir</span></i><code><font color="blue"><span style='white-space: nowrap'><br/> </span></font></code>during <a href="installunix.xml#FadbadDir" target="_top"><span style='white-space: nowrap'>installation</span></a> . After the Unix install <a href="installunix.xml#make" target="_top"><span style='white-space: nowrap'>make</span></a> command, you can then run the Fadbad speed tests with the following commands (relative to the distribution directory): <code><font color="blue"><span style='white-space: nowrap'><br/>      speed/fadbad/fadbad correct </span></font></code><i><span style='white-space: nowrap'>seed</span></i><code><font color="blue"><span style='white-space: nowrap'><br/> </span></font></code>where <i>seed</i> is a positive integer see for the random number generator <a href="uniform_01.xml" target="_top"><span style='white-space: nowrap'>uniform_01</span></a> . This will check that the speed tests have been built correctly. You can run the command <code><font color="blue"><span style='white-space: nowrap'><br/>      speed/fadbad/fadbad speed </span></font></code><i><span style='white-space: nowrap'>seed</span></i><code><font color="blue"><span style='white-space: nowrap'><br/> </span></font></code>to see the results of all the speed tests. See <a href="speed_main.xml" target="_top"><span style='white-space: nowrap'>speed_main</span></a> for more options. <br/> <br/> <b><big><a name="C++ Compiler Flags" id="C++ Compiler Flags">C++ Compiler Flags</a></big></b> <br/> The C++ compiler flags used to build the Fadbad speed tests are <code><font color="blue"> <pre style='display:inline'> # Note that Fadbad will not compile with the -pedantic-errors flag, # so we are leaving CXX_FLAGS out of this complilation. AM_CXXFLAGS = -O2 -DNDEBUG -Wno-deprecated -DFADBAD $(CXX_FLAGS)</pre> </font></code> <br/> <br/> <b><big><a name="Contents" id="Contents">Contents</a></big></b> <br/> <div><a href="fadbad_det_minor.cpp.xml" target="_top">Fadbad Speed: Gradient of Determinant by Minor Expansion</a><br/> <a href="fadbad_det_lu.cpp.xml" target="_top">Fadbad Speed: Gradient of Determinant Using Lu Factorization</a><br/> <a href="fadbad_ode.cpp.xml" target="_top">Fadbad Speed: Ode</a><br/> <a href="fadbad_poly.cpp.xml" target="_top">Fadbad Speed: Second Derivative of a Polynomial</a><br/> <a href="fadbad_sparse_hessian.cpp.xml" target="_top">Fadbad Speed: Sparse Hessian</a><br/> <a href="fadbad_sparse_jacobian.cpp.xml" target="_top">fadbad Speed: sparse_jacobian</a><br/> </div> <hr/>Input File: omh/speed_fadbad.omh </body> </html>