Prev Next

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Compare Speed of C and C++

Syntax
test_more/compare_c/det_by_minor_c
test_more/compare_c/det_by_minor_cpp

Purpose
Compares the speed of the exact same source code compiled using C versus C++.

Contents
det_of_minor_cDeterminant of a Minor
det_by_minor_cCompute Determinant using Expansion by Minors
uniform_01_cSimulate a [0,1] Uniform Random Variate
correct_det_by_minor_cCorrectness Test of det_by_minor Routine
repeat_det_by_minor_cRepeat det_by_minor Routine A Specified Number of Times
elapsed_seconds_cReturns Elapsed Number of Seconds
time_det_by_minor_cDetermine Amount of Time to Execute det_by_minor
main_compare_cMain Program For Comparing C and C++ Speed

Input File: test_more/compare_c/CMakeLists.txt