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

◆ increment()

bool WeylAlgebra::increment ( int * current_derivative,
const int * top_derivative ) const
protected

Definition at line 273 of file weylalg.cpp.

275{
276 int i = 0;
277 while (current_derivative[i] == top_derivative[i])
278 {
279 i++;
280 if (i >= _nderivatives)
281 {
282 return false;
283 }
284 }
285 for (int j = 0; j < i; j++) current_derivative[j] = 0;
286 current_derivative[i]++;
287 return true;
288}
int _nderivatives
Definition weylalg.hpp:62

References _nderivatives.

Referenced by gbvector_mult_by_term(), and mult_by_term().