/[ascend]/trunk/base/generic/compiler/relation_util.h
ViewVC logotype

Diff of /trunk/base/generic/compiler/relation_util.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 701 by johnpye, Mon Jun 26 12:56:55 2006 UTC revision 702 by johnpye, Mon Jun 26 13:37:58 2006 UTC
# Line 526  int RelationCalcGradient(struct Instance Line 526  int RelationCalcGradient(struct Instance
526      You must provide grad, the space to put the gradient, an array of      You must provide grad, the space to put the gradient, an array of
527      double of length matching the gl_list_t.      double of length matching the gl_list_t.
528      We will stuff df/dx[i] into grad[i-1], where i is the list position      We will stuff df/dx[i] into grad[i-1], where i is the list position
529      in the relation's var list.<br><br>      in the relation's var list.
530            
531      @return Non-zero return value implies a problem      @return Non-zero return value implies a problem
532            
# Line 538  enum safe_err RelationCalcGradientSafe(s Line 538  enum safe_err RelationCalcGradientSafe(s
538  /**<  /**<
539      This calculates the gradient of the relation df/dx (f = lhs-rhs)      This calculates the gradient of the relation df/dx (f = lhs-rhs)
540      where x is ALL entries in the relation's var list.      where x is ALL entries in the relation's var list.
541    
542      This function is to RelationCalcGradient as      This function is to RelationCalcGradient as
543      RelationCalcResidualSafe is to RelationCalcResidual.      RelationCalcResidualSafe is to RelationCalcResidual.
544      Non-zero return value implies a problem.      Non-zero return value implies a problem.
# Line 547  int RelationCalcResidGrad(struct Instanc Line 548  int RelationCalcResidGrad(struct Instanc
548  /**<  /**<
549      This function combines the Residual and Gradient calls, since these      This function combines the Residual and Gradient calls, since these
550      may be done together at basically the cost of just one.      may be done together at basically the cost of just one.
551      Non-zero return value implies a problem.<br><br>      Non-zero return value implies a problem.
552            
553      @NOTE This function is a possible source of floating point exceptions      @NOTE This function is a possible source of floating point exceptions
554      and should not be used during compilation.      and should not be used during compilation.

Legend:
Removed from v.701  
changed lines
  Added in v.702

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22