Changeset 3086df in git


Ignore:
Timestamp:
Oct 2, 2009, 4:16:57 PM (15 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
414d035b432a95898b803d8803f4ebc5eee0166e
Parents:
f2dcd1b022b58cf3a4a8c2c40138fcd7a41c8fe7
Message:
*** empty log message ***


git-svn-id: file:///usr/local/Singular/svn/trunk@12153 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/matpol.cc

    rf2dcd1 r3086df  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: matpol.cc,v 1.17 2009-10-02 13:48:13 seelisch Exp $ */
     4/* $Id: matpol.cc,v 1.18 2009-10-02 14:16:57 seelisch Exp $ */
    55
    66/*
     
    655655  l = 1; /* k,l:the index in result*/
    656656  idInitChoise(ar,1,a->nrows,&rowch,rowchoise);
     657  totalNumOfMult = 0; totalNumOfAdd = 0; // for counting basic arithmetic operations
    657658  while (!rowch)
    658659  {
     
    677678    l++;
    678679  }
    679 
     680<<<<<<< matpol.cc
     681  PrintS("==========================================================================");
     682  printf("total number of calls to pAdd = %d", totalNumOfAdd);
     683  printf("total number of calls to smMultDiv = %d", totalNumOfMult);
     684  PrintS("(smMultDiv(a,b,c) returns the portion of (a*b)/LM(c) with nonegative");
     685  PrintS(" exponents; for more than five monomials this method makes use of buckets)");
     686  PrintS("==========================================================================");
     687=======
     688
     689>>>>>>> 1.17
    680690  /*delete the matrix tmp*/
    681691  for (i=1; i<=ar; i++)
     
    11111121        if (ap[jj] != NULL)
    11121122        {
     1123          totalNumOfMult++;
    11131124          q2 = SM_MULT(ap[jj], elim, div);
    11141125          if (a[jj] != NULL)
    11151126          {
     1127            totalNumOfMult++;
    11161128            q1 = SM_MULT(a[jj], piv, div);
    11171129            pDelete(&a[jj]);
     1130            totalNumOfAdd++;
    11181131            q2 = pAdd(q2, q1);
    11191132          }
     
    11211134        else if (a[jj] != NULL)
    11221135        {
     1136          totalNumOfMult++;
    11231137          q2 = SM_MULT(a[jj], piv, div);
    11241138        }
     
    11361150        if (a[jj] != NULL)
    11371151        {
     1152          totalNumOfMult++;
    11381153          q2 = SM_MULT(a[jj], piv, div);
    11391154          pDelete(&a[jj]);
Note: See TracChangeset for help on using the changeset viewer.