Changeset 2b78bd in git for Singular/Minor.h
- Timestamp:
- Oct 2, 2009, 3:51:19 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f2dcd1b022b58cf3a4a8c2c40138fcd7a41c8fe7
- Parents:
- a8df349fc8f6ff6a87ea2b79a5d652597ad42e14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Minor.h
ra8df349 r2b78bd 1 #ifndef MinorIncluded 2 #define MinorIncluded 1 #ifndef Minor_H 2 #define Minor_H 3 4 #ifdef HAVE_MINOR 3 5 4 6 #include <assert.h> … … 342 344 343 345 /** 344 * a store for the actual number of summations to compute the current minor345 */ 346 long _ summations;346 * a store for the actual number of additions to compute the current minor 347 */ 348 long _additions; 347 349 348 350 /** … … 354 356 355 357 /** 356 * a store for the accumulated number of summations to compute the current minor;357 * This also includes all summations nested in sub-minors which may be retrieved358 * a store for the accumulated number of additions to compute the current minor; 359 * This also includes all additions nested in sub-minors which may be retrieved 358 360 * from a cache. (Thus, these nested operations do not need to be performed again.) 359 361 */ … … 457 459 * @see Cache::getWeight () const 458 460 */ 459 virtual intgetWeight () const;461 virtual long getWeight () const; 460 462 461 463 /** … … 502 504 503 505 /** 504 * A method for accessing the summations performed while computing this minor.505 * Summations that were needed to compute cached sub-minors will not be counted,506 * A method for accessing the additions performed while computing this minor. 507 * Additions that were needed to compute cached sub-minors will not be counted, 506 508 * as the value of those sub-minors can be directly retrieved from the cache. 507 * @return the number of summations performed508 * @see MinorValue::getAccumulated Summations () const509 */ 510 long get Summations () const;511 512 /** 513 * A method for accessing the summations performed while computing this minor, including514 * all nested summations.515 * Contrary to MinorValue::get Summations () const, this method will also count summations509 * @return the number of additions performed 510 * @see MinorValue::getAccumulatedAdditions () const 511 */ 512 long getAdditions () const; 513 514 /** 515 * A method for accessing the additions performed while computing this minor, including 516 * all nested additions. 517 * Contrary to MinorValue::getAdditions () const, this method will also count additions 516 518 * needed to compute all cached sub-minors (, although they need not be performed again in order to 517 519 * compute the given instance of MinorValue). 518 * @return the number of summations performed, including nested summations519 * @see MinorValue::get Summations () const520 */ 521 long getAccumulated Summations () const;520 * @return the number of additions performed, including nested additions 521 * @see MinorValue::getAdditions () const 522 */ 523 long getAccumulatedAdditions () const; 522 524 523 525 /** … … 586 588 of any minor is a long again.<br> 587 589 Besides capturing the actual value of a minor, LongMinorValue also has built-in facilities to 588 count the number of summations and multiplications performed when computing a minor. These two590 count the number of additions and multiplications performed when computing a minor. These two 589 591 counters, especially the latter, are important measures when we want to investigate the complexity 590 592 of computing minors.<br> … … 605 607 * @param result the actual value of the represented minor 606 608 * @param multiplications number of multiplications to compute \a this minor 607 * @param summations number of summations to compute \a this minor609 * @param additions number of additions to compute \a this minor 608 610 * @param accumulatedMultiplications number of multiplications to compute \a this minor, including nested operations 609 * @param accumulated Summations number of summations to compute \a this minor, including nested operations611 * @param accumulatedAdditions number of additions to compute \a this minor, including nested operations 610 612 * @param retrievals number of times this minor has been retrieved from cache 611 613 * @param potentialRetrievals maximum number of times this minor may be retrieved from cache 612 614 */ 613 LongMinorValue (const long result, const int multiplications, const int summations,614 const int accumulatedMultiplications, const int accumulated Summations,615 LongMinorValue (const long result, const int multiplications, const int additions, 616 const int accumulatedMultiplications, const int accumulatedAdditions, 615 617 const int retrievals, const int potentialRetrievals); 616 618 … … 624 626 long getResult() const; 625 627 626 intgetWeight () const;628 long getWeight () const; 627 629 628 630 /** … … 644 646 * @param result the actual value of the represented minor 645 647 * @param multiplications number of multiplications to compute \a this minor 646 * @param summations number of summations to compute \a this minor648 * @param additions number of additions to compute \a this minor 647 649 * @param accumulatedMultiplications number of multiplications to compute \a this minor, including nested operations 648 * @param accumulated Summations number of summations to compute \a this minor, including nested operations650 * @param accumulatedAdditions number of additions to compute \a this minor, including nested operations 649 651 * @param retrievals number of times this minor has been retrieved from cache 650 652 * @param potentialRetrievals maximum number of times this minor may be retrieved from cache 651 653 */ 652 PolyMinorValue (const poly result, const int multiplications, const int summations,653 const int accumulatedMultiplications, const int accumulated Summations,654 PolyMinorValue (const poly result, const int multiplications, const int additions, 655 const int accumulatedMultiplications, const int accumulatedAdditions, 654 656 const int retrievals, const int potentialRetrievals); 655 657 … … 663 665 poly getResult() const; 664 666 665 intgetWeight () const;667 long getWeight () const; 666 668 667 669 /** … … 672 674 }; 673 675 676 #endif // HAVE_MINOR 677 674 678 #endif 679 /* Minor_H */
Note: See TracChangeset
for help on using the changeset viewer.