Changeset 509f1cd in git


Ignore:
Timestamp:
Feb 2, 2000, 7:03:21 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b569016b27d14033881d2f4e0df254011c834f0f
Parents:
eb508c56858974e93821395bcb17cc4d7c11bcf7
Message:
*hannes: smIsScalar -> pIsConstantComp


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

Legend:

Unmodified
Added
Removed
  • Singular/sparsmat.cc

    reb508c r509f1cd  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: sparsmat.cc,v 1.22 1999-12-20 08:46:14 pohl Exp $ */
     4/* $Id: sparsmat.cc,v 1.23 2000-02-02 18:03:21 Singular Exp $ */
    55
    66/*
     
    4747/* declare internal 'C' stuff */
    4848static void smExactPolyDiv(poly, poly);
    49 static BOOLEAN smIsScalar(const poly);
    5049static BOOLEAN smIsNegQuot(poly, const poly, const poly);
    5150static poly smEMult(poly, const poly);
     
    17541753  if (pNext(b) == NULL)
    17551754  {
    1756     if (smIsScalar(b))
     1755    if (pIsConstantComp(b))
    17571756      return pMultCopyN(a, pGetCoeff(b));
    17581757    else
     
    17851784    do
    17861785    {
    1787       if (!smIsScalar(b))
     1786      if (!pIsConstantComp(b))
    17881787      {
    17891788        for (i=pVariables; i; i--)
     
    18411840    b = r;
    18421841  }
    1843   if ((c == NULL) || smIsScalar(c))
     1842  if ((c == NULL) || pIsConstantComp(c))
    18441843  {
    18451844    if (pNext(b) == NULL)
    18461845    {
    1847       if (smIsScalar(b))
     1846      if (pIsConstantComp(b))
    18481847        return pMultCopyN(a, pGetCoeff(b));
    18491848      else
     
    19601959}
    19611960
    1962 static BOOLEAN smIsScalar(const poly Term)
    1963 {
    1964   int i;
    1965 
    1966   for (i=pVariables; i; i--)
    1967   {
    1968     if (pGetExp(Term,i)) return FALSE;
    1969   }
    1970   return TRUE;
    1971 }
    1972 
    19731961static BOOLEAN smIsNegQuot(poly a, const poly b, const poly c)
    19741962{
Note: See TracChangeset for help on using the changeset viewer.