Revision 1060 trunk/src/linad99/sgradclc.cpp

sgradclc.cpp (revision 1060)
5 5
 * Copyright (c) 2008-2012 Regents of the University of California 
6 6
 */
7 7
/**
8
 * \file
9
 * Description not yet available.
8
  \file sgradclc.cpp
9
  Functions to compute gradient from the global \ref gradient_structure.
10 10
 */
11 11
#include "fvar.hpp"
12 12

  
......
77 77
//void KLUDGEX(void * p);
78 78

  
79 79
/**
80
 * Description not yet available.
81
 * \param
80
  Compute the gradient from the data stored in the global \ref gradient_structure.
81
  \param nvar Number of variables in the gradient.
82
  \param _g Vector from 1 to nvar. On return contains the gradient.
82 83
 */
83 84
void gradcalc(int nvar, const dvector& _g)
84 85
{
......
247 248
}
248 249

  
249 250
/**
250
 * Description not yet available.
251
 * \param
252 251
 */
253 252
void gradient_structure::save_arrays()
254 253
{
......
323 322
}
324 323

  
325 324
/**
326
 * Description not yet available.
327
 * \param
328 325
 */
329 326
void gradient_structure::restore_arrays()
330 327
{
......
384 381
}
385 382

  
386 383
/**
387
 * Description not yet available.
388
 * \param
389 384
 */
390 385
void gradient_structure::save_variables()
391 386
{
......
407 402
}
408 403

  
409 404
/**
410
 * Description not yet available.
411
 * \param
412 405
 */
413 406
void gradient_structure::restore_variables()
414 407
{
......
425 418
void KLUDGEX(void * p){;}
426 419

  
427 420
/**
428
 * Description not yet available.
429
 * \param
430 421
 */
431 422
void reset_gradient_stack(void)
432 423
{
......
442 433
//static grad_stack_entry * pgse = (grad_stack_entry*) (0x1498fffc);
443 434

  
444 435
/**
445
 * Description not yet available.
446
 * \param
436
  Sets the gradient stack entry for a function or operator with a single
437
  independent variable.
438
  \param func Pointer to function to compute the derivative of the dependent 
439
   variable with respect to the independent variable. 
440
   Function prototype: void func(void);
441
  \param dep_addr Address of dependent variable; pointer to double.
442
  \param ind_addr1 Address of independent variable; pointer to double
447 443
 */
448 444
void grad_stack::set_gradient_stack1(void (* func)(void),
449 445
  double * dep_addr,double * ind_addr1)
......
481 477
}
482 478

  
483 479
/**
484
 * Description not yet available.
485
 * \param
486 480
 */
487 481
void test_the_pointer(void)
488 482
{

Also available in: Unified diff