Codebase list cppad / upstream/2015.00.00.7 doc / speed_main.xml
upstream/2015.00.00.7

Tree @upstream/2015.00.00.7 (Download .tar.gz)

speed_main.xml @upstream/2015.00.00.7raw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<?xml version='1.0'?>
<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:math='http://www.w3.org/1998/Math/MathML'
>
<head>
<title>Running the Speed Test Program</title>
<meta http-equiv='Content-Type' content='text/html' charset='utf-8'/>
<meta name="description" id="description" content="Running the Speed Test Program"/>
<meta name="keywords" id="keywords" content=" cppad speed test running the program syntax purpose package ad double profile correct seed uniform_01 option_list onetape optimize atomic memory sparsity options boolsparsity colpack correctness results sparse_jacobian link functions "/>
<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_main_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="speed.xml" target="_top">Prev</a>
</td><td><a href="link_det_lu.xml" target="_top">Next</a>
</td><td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</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-&gt;</option>
<option>CppAD</option>
<option>speed</option>
<option>speed_main</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>CppAD-&gt;</option>
<option>Install</option>
<option>Introduction</option>
<option>AD</option>
<option>ADFun</option>
<option>preprocessor</option>
<option>multi_thread</option>
<option>library</option>
<option>ipopt_solve</option>
<option>Example</option>
<option>speed</option>
<option>Appendix</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>speed-&gt;</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_main-&gt;</option>
<option>link_det_lu</option>
<option>link_det_minor</option>
<option>link_mat_mul</option>
<option>link_ode</option>
<option>link_poly</option>
<option>link_sparse_hessian</option>
<option>link_sparse_jacobian</option>
<option>microsoft_timer</option>
</select>
</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Syntax</option>
<option>Purpose</option>
<option>package</option>
<option>---..AD Package</option>
<option>---..double</option>
<option>---..profile</option>
<option>test</option>
<option>---..correct</option>
<option>---..speed</option>
<option>seed</option>
<option>option_list</option>
<option>---..onetape</option>
<option>---..optimize</option>
<option>---..atomic</option>
<option>---..memory</option>
<option>Sparsity Options</option>
<option>---..boolsparsity</option>
<option>---..colpack</option>
<option>Correctness Results</option>
<option>Speed Results</option>
<option>---..sparse_jacobian</option>
<option>Link Functions</option>
</select>
</td>
</tr></table><br/>
<center><b><big><big>Running the Speed Test Program</big></big></b></center>
<br/>
<b><big><a name="Syntax" id="Syntax">Syntax</a></big></b>

<br/>

<code><font color="blue"><span style='white-space: nowrap'>speed/</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>/speed_</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>seed</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>option_list</span></font></i></code>


<br/>
<br/>
<b><big><a name="Purpose" id="Purpose">Purpose</a></big></b>
<br/>
A version of this program runs the correctness tests
or the speed tests for one AD package identified by 
<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
.

<br/>
<br/>
<b><big><a name="package" id="package">package</a></big></b>


<br/>
<br/>
<b><a name="package.AD Package" id="package.AD Package">AD Package</a></b>
<br/>
The command line argument

<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
 specifies one of the AD package.
The CppAD distribution comes with support for the following packages:
<a href="speed_adolc.xml" target="_top"><span style='white-space: nowrap'>adolc</span></a>
,
<a href="speed_cppad.xml" target="_top"><span style='white-space: nowrap'>cppad</span></a>
, 
<a href="speed_fadbad.xml" target="_top"><span style='white-space: nowrap'>fadbad</span></a>
, 
<a href="speed_sacado.xml" target="_top"><span style='white-space: nowrap'>sacado</span></a>
.
You can extend this program to include other package.
Such an extension need not include all the tests. 
For example, 
<a href="link_sparse_hessian.xml" target="_top"><span style='white-space: nowrap'>link_sparse_hessian</span></a>
 just returns <code><font color="blue">false</font></code> for the
<a href="fadbad_sparse_hessian.cpp.xml" target="_top"><span style='white-space: nowrap'>fadbad</span></a>
 and
<a href="sacado_sparse_hessian.cpp.xml" target="_top"><span style='white-space: nowrap'>sacado</span></a>
 packages.


<br/>
<br/>
<b><a name="package.double" id="package.double">double</a></b>
<br/>
The value

<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
 can be <code><font color="blue">double</font></code> in which case
the function values (instead of derivatives) are computed
using double precision operations.
This enables one to compare the speed of computing function
values in <code><font color="blue">double</font></code> to the speed of the derivative computations.
(It is often useful to divide the speed of the derivative computation by
the speed of the function evaluation in <code><font color="blue">double</font></code>.) 

<br/>
<br/>
<b><a name="package.profile" id="package.profile">profile</a></b>
<br/>
In the special case where 
<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
 is <code><font color="blue">profile</font></code>,
the CppAD package is compiled and run with profiling to aid in determining
where it is spending most of its time.

<br/>
<br/>
<b><big><a name="test" id="test">test</a></big></b>
<br/>
It the argument 
<code><i><font color="black"><span style='white-space: nowrap'>test</span></font></i></code>
 specifies which test to run
and has the following possible values:
<a href="speed_main.xml#test.correct" target="_top"><span style='white-space: nowrap'>correct</span></a>
,
<a href="speed_main.xml#test.speed" target="_top"><span style='white-space: nowrap'>speed</span></a>
,
<a href="link_det_minor.xml" target="_top"><span style='white-space: nowrap'>det_minor</span></a>
,
<a href="link_det_lu.xml" target="_top"><span style='white-space: nowrap'>det_lu</span></a>
,
<a href="link_mat_mul.xml" target="_top"><span style='white-space: nowrap'>mat_mul</span></a>
,
<a href="link_ode.xml" target="_top"><span style='white-space: nowrap'>ode</span></a>
,
<a href="link_poly.xml" target="_top"><span style='white-space: nowrap'>poly</span></a>
,
<a href="link_sparse_hessian.xml" target="_top"><span style='white-space: nowrap'>sparse_hessian</span></a>
,
<a href="link_sparse_jacobian.xml" target="_top"><span style='white-space: nowrap'>sparse_jacobian</span></a>
.
You can experiment with changing the implementation of a
particular test for a particular package.

<br/>
<br/>
<b><a name="test.correct" id="test.correct">correct</a></b>
<br/>
If 
<code><i><font color="black"><span style='white-space: nowrap'>test</span></font></i></code>
 is equal to <code><font color="blue">correct</font></code>,
all of the correctness tests are run.

<br/>
<br/>
<b><a name="test.speed" id="test.speed">speed</a></b>
<br/>
If 
<code><i><font color="black"><span style='white-space: nowrap'>test</span></font></i></code>
 is equal to <code><font color="blue">speed</font></code>,
all of the speed tests are run.

<br/>
<br/>
<b><big><a name="seed" id="seed">seed</a></big></b>

<br/>
The command line argument 
<code><i><font color="black"><span style='white-space: nowrap'>seed</span></font></i></code>
 is a positive integer.
The random number simulator <a href="uniform_01.xml" target="_top"><span style='white-space: nowrap'>uniform_01</span></a>
 is initialized with
the call

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;uniform_01(</span></font><i><font color="black"><span style='white-space: nowrap'>seed</span></font></i><font color="blue"><span style='white-space: nowrap'>)<br/>
</span></font></code>
before any of the testing routines (listed above) are called.

<br/>
<br/>
<b><big><a name="option_list" id="option_list">option_list</a></big></b>
<br/>
This is a list of options that follow 
<code><i><font color="black"><span style='white-space: nowrap'>seed</span></font></i></code>
 value.
The order of the options does not matter and the list can be empty.
Each option in the list, must be separate 
command line argument to the main program. 
The documentation below specifics how CppAD uses these options,
see the examples in <a href="speed_adolc.xml" target="_top"><span style='white-space: nowrap'>speed_adolc</span></a>
 for how another package might
uses these options.

<br/>
<br/>
<b><a name="option_list.onetape" id="option_list.onetape">onetape</a></b>
<br/>
If the option <code><font color="blue">onetape</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_onetape
</pre></font></code>

is true and otherwise it is false.
If this external symbol is true,
CppAD will use one taping of the operation
sequence for all the repetitions of that speed test.
Otherwise, the 
<a href="glossary.xml#Operation.Sequence" target="_top"><span style='white-space: nowrap'>operation&#xA0;sequence</span></a>

will be retaped for each test repetition.
<code><span style='white-space: nowrap'><br/>
<br/>
</span></code>All of the tests, except <a href="link_det_lu.xml" target="_top"><span style='white-space: nowrap'>det_lu</span></a>
,
have a fixed operations sequence.
The operation sequence for <code><font color="blue">det_lu</font></code> 
may be different for each repetition of the test because it
depends on the matrix for which the determinant is being calculated. 
For this reason, the CppAD test
<a href="cppad_det_lu.cpp.xml" target="_top"><span style='white-space: nowrap'>cppad_det_lu.cpp</span></a>
 returns false 
(indicating that the test not implemented)
when <code><font color="blue">global_onetape</font></code> is true.

<br/>
<br/>
<b><a name="option_list.optimize" id="option_list.optimize">optimize</a></b>
<br/>
If the option <code><font color="blue">optimize</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_optimize
</pre></font></code>

is true and otherwise it is false.
If this external symbol is true,
CppAD will optimize the operation sequence before doing computations.
If it is false, this optimization will not be done.

<br/>
<br/>
<b><a name="option_list.atomic" id="option_list.atomic">atomic</a></b>
<br/>
If the option <code><font color="blue">atomic</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_atomic
</pre></font></code>

is true and otherwise it is false.
If this external symbol is true, CppAD will use its user defined 
<a href="atomic_base.xml" target="_top"><span style='white-space: nowrap'>atomic</span></a>
 operation is used for the test.
If no such atomic operation exists,
and atomic is chosen, CppAD returns false for the test.

<br/>
<br/>
<b><a name="option_list.memory" id="option_list.memory">memory</a></b>
<br/>
If the option <code><font color="blue">memory</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_memory
</pre></font></code>

is true and otherwise it is false.
If it is true, the CppAD
<a href="ta_hold_memory.xml" target="_top"><span style='white-space: nowrap'>hold_memory</span></a>
 routine will be called by 
the main program before any of the tests are executed.
This should make the CppAD <code><font color="blue">thread_alloc</font></code> allocator faster.
If it is false, CppAD will used standard memory allocation. 

<br/>
<br/>
<b><big><a name="Sparsity Options" id="Sparsity Options">Sparsity Options</a></big></b>
<br/>
The following options only apply to the 
<a href="link_sparse_jacobian.xml" target="_top"><span style='white-space: nowrap'>sparse_jacobian</span></a>
 and
<a href="link_sparse_hessian.xml" target="_top"><span style='white-space: nowrap'>sparse_hessian</span></a>
 tests.
The other tests will ignore these options:

<br/>
<br/>
<b><a name="Sparsity Options.boolsparsity" id="Sparsity Options.boolsparsity">boolsparsity</a></b>
<br/>
If the option <code><font color="blue">boolsparsity</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_boolsparsity
</pre></font></code>

is true and otherwise it is false.
If it is true, CppAD will use a
<a href="glossary.xml#Sparsity Pattern.Vector of Boolean" target="_top"><span style='white-space: nowrap'>vector&#xA0;of&#xA0;bool</span></a>

for its sparsity patterns. 
Otherwise it will use a 
<a href="glossary.xml#Sparsity Pattern.Vector of Sets" target="_top"><span style='white-space: nowrap'>vector&#xA0;of&#xA0;sets</span></a>
.

<br/>
<br/>
<b><a name="Sparsity Options.colpack" id="Sparsity Options.colpack">colpack</a></b>
<br/>
If the option <code><font color="blue">colpack</font></code> is present, the symbol
<code><font color='blue'><pre style='display:inline'> 
	extern bool global_colpack
</pre></font></code>

is true and otherwise it is false.
If this external symbol is true,
CppAD will use <a href="colpack_prefix.xml" target="_top"><span style='white-space: nowrap'>colpack</span></a>
 to do the coloring 
for its 
Otherwise, it will use it's own coloring algorithm.

<br/>
<br/>
<b><big><a name="Correctness Results" id="Correctness Results">Correctness Results</a></big></b>
<br/>
One, but not both, of the following two output lines

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>optionlist</span></font></i><font color="blue"><span style='white-space: nowrap'>_available&#xA0;=&#xA0;false<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>optionlist</span></font></i><font color="blue"><span style='white-space: nowrap'>_ok&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>flag</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
is generated for each correctness test where

<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
 and 
<code><i><font color="black"><span style='white-space: nowrap'>test</span></font></i></code>
 are as above,

<code><i><font color="black"><span style='white-space: nowrap'>optionlist</span></font></i></code>
 are the options (in 
<code><i><font color="black"><span style='white-space: nowrap'>option_list</span></font></i></code>
) 
separated by the underbar <code><font color="blue">_</font></code> character
(whereas they are separated by spaces in 
<code><i><font color="black"><span style='white-space: nowrap'>option_list</span></font></i></code>
),
and 
<code><i><font color="black"><span style='white-space: nowrap'>flag</span></font></i></code>
 is <code><font color="blue">true</font></code> or <code><font color="blue">false</font></code>.

<br/>
<br/>
<b><big><a name="Speed Results" id="Speed Results">Speed Results</a></big></b>
<br/>
For each speed test, corresponds to three lines of the
following form are generated:

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>optionlist</span></font></i><font color="blue"><span style='white-space: nowrap'>_ok&#xA0;&#xA0;&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>flag</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>_size&#xA0;=&#xA0;[&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>size_1</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>...</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>size_n</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;]<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_</span></font><i><font color="black"><span style='white-space: nowrap'>test</span></font></i><font color="blue"><span style='white-space: nowrap'>_rate&#xA0;=&#xA0;[&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>rate_1</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>...</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>rate_n</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;]<br/>
</span></font></code>
The values 
<code><i><font color="black"><span style='white-space: nowrap'>package</span></font></i></code>
, 
<code><i><font color="black"><span style='white-space: nowrap'>test</span></font></i></code>
, 
<code><i><font color="black"><span style='white-space: nowrap'>optionlist</span></font></i></code>
,
and 
<code><i><font color="black"><span style='white-space: nowrap'>flag</span></font></i></code>
 are as in the correctness results above.
The values 
<code><i><font color="black"><span style='white-space: nowrap'>size_1</span></font></i></code>
, ..., 
<code><i><font color="black"><span style='white-space: nowrap'>size_n</span></font></i></code>
 are the
size arguments used for the corresponding tests.
The values 
<code><i><font color="black"><span style='white-space: nowrap'>rate_1</span></font></i></code>
, ..., 
<code><i><font color="black"><span style='white-space: nowrap'>rate_n</span></font></i></code>
 are the number of times
per second that the corresponding size problem executed.

<br/>
<br/>
<b><a name="Speed Results.sparse_jacobian" id="Speed Results.sparse_jacobian">sparse_jacobian</a></b>
<br/>
The <a href="link_sparse_jacobian.xml" target="_top"><span style='white-space: nowrap'>sparse_jacobian</span></a>
 test has an extra output
line with the following form

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>package</span></font></i><font color="blue"><span style='white-space: nowrap'>_sparse_jacobian_n_sweep&#xA0;=&#xA0;[&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>n_sweep_1</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>...</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>n_sweep_n</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;]<br/>
</span></font></code>
The values 
<code><i><font color="black"><span style='white-space: nowrap'>n_sweep_1</span></font></i></code>
, ..., 
<code><i><font color="black"><span style='white-space: nowrap'>n_sweep_n</span></font></i></code>
 are the number of 
sweeps (colors) used for each sparse Jacobian calculation; see
<a href="sparse_jacobian.xml#n_sweep" target="_top"><span style='white-space: nowrap'>n_sweep</span></a>
.




<br/>
<br/>
<b><big><a name="Link Functions" id="Link Functions">Link Functions</a></big></b>
<br/>
Each <a href="speed_main.xml#package" target="_top"><span style='white-space: nowrap'>package</span></a>

defines it's own version of one of the link functions listed below.
Each of these functions links this main program to the corresponding test:
<table><tr><td align='left'  valign='top'>

<a href="link_det_lu.xml" target="_top">link_det_lu</a></td><td>
Speed Testing Gradient of Determinant Using Lu Factorization</td></tr>
<tr><td>

<a href="link_det_minor.xml" target="_top">link_det_minor</a></td><td>
Speed Testing Gradient of Determinant by Minor Expansion</td></tr>
<tr><td>

<a href="link_mat_mul.xml" target="_top">link_mat_mul</a></td><td>
Speed Testing Derivative of Matrix Multiply</td></tr>
<tr><td>

<a href="link_ode.xml" target="_top">link_ode</a></td><td>
Speed Testing the Jacobian of Ode Solution</td></tr>
<tr><td>

<a href="link_poly.xml" target="_top">link_poly</a></td><td>
Speed Testing Second Derivative of a Polynomial</td></tr>
<tr><td>

<a href="link_sparse_hessian.xml" target="_top">link_sparse_hessian</a></td><td>
Speed Testing Sparse Hessian</td></tr>
<tr><td>

<a href="link_sparse_jacobian.xml" target="_top">link_sparse_jacobian</a></td><td>
Speed Testing Sparse Jacobian</td></tr>
<tr><td>

</td></tr>
</table>

<hr/>Input File: speed/main.cpp

</body>
</html>