compare_c

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

Name

Title

det_of_minor_c

Determinant of a Minor

det_by_minor_c

Compute Determinant using Expansion by Minors

uniform_01_c

Simulate a [0,1] Uniform Random Variate

correct_det_by_minor_c

Correctness Test of det_by_minor Routine

repeat_det_by_minor_c

Repeat det_by_minor Routine A Specified Number of Times

elapsed_seconds_c

Returns Elapsed Number of Seconds

time_det_by_minor_c

Determine Amount of Time to Execute det_by_minor

main_compare_c

Main Program For Comparing C and C++ Speed