Changeset 509f1cd in git
- Timestamp:
- Feb 2, 2000, 7:03:21 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b569016b27d14033881d2f4e0df254011c834f0f
- Parents:
- eb508c56858974e93821395bcb17cc4d7c11bcf7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/sparsmat.cc
reb508c r509f1cd 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: sparsmat.cc,v 1.2 2 1999-12-20 08:46:14 pohlExp $ */4 /* $Id: sparsmat.cc,v 1.23 2000-02-02 18:03:21 Singular Exp $ */ 5 5 6 6 /* … … 47 47 /* declare internal 'C' stuff */ 48 48 static void smExactPolyDiv(poly, poly); 49 static BOOLEAN smIsScalar(const poly);50 49 static BOOLEAN smIsNegQuot(poly, const poly, const poly); 51 50 static poly smEMult(poly, const poly); … … 1754 1753 if (pNext(b) == NULL) 1755 1754 { 1756 if ( smIsScalar(b))1755 if (pIsConstantComp(b)) 1757 1756 return pMultCopyN(a, pGetCoeff(b)); 1758 1757 else … … 1785 1784 do 1786 1785 { 1787 if (! smIsScalar(b))1786 if (!pIsConstantComp(b)) 1788 1787 { 1789 1788 for (i=pVariables; i; i--) … … 1841 1840 b = r; 1842 1841 } 1843 if ((c == NULL) || smIsScalar(c))1842 if ((c == NULL) || pIsConstantComp(c)) 1844 1843 { 1845 1844 if (pNext(b) == NULL) 1846 1845 { 1847 if ( smIsScalar(b))1846 if (pIsConstantComp(b)) 1848 1847 return pMultCopyN(a, pGetCoeff(b)); 1849 1848 else … … 1960 1959 } 1961 1960 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 1973 1961 static BOOLEAN smIsNegQuot(poly a, const poly b, const poly c) 1974 1962 {
Note: See TracChangeset
for help on using the changeset viewer.