Macaulay2 Engine
Loading...
Searching...
No Matches

◆ diffPartReference()

template<class Field>
int SLP< Field >::diffPartReference ( int n,
int ref,
int v,
gc_vector< int > & prog )
private

Definition at line 434 of file NAG.cpp.

435{
436 if (ref < 0)
437 return diffNodeInput(n + ref, v, prog);
438 else if (ref < CONST_OFFSET)
439 { // an input
440 if (ref == v)
441 return ONE_CONST;
442 else
443 return ZERO_CONST;
444 }
445 else
446 return ZERO_CONST; // a constant
447}
int diffNodeInput(int n, int v, gc_vector< int > &prog)
Definition NAG.cpp:450
Definition NAG.hpp:485

References CONST_OFFSET, diffNodeInput(), ONE_CONST, and ZERO_CONST.

Referenced by diffNodeInput().