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 |
|
|
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. |
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. |