Changeset ea7ecf in git
- Timestamp:
- Oct 17, 2006, 6:24:45 PM (17 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- a5646cd92e186edcb0044afccca5f46fad506c62
- Parents:
- e690a910bccbd407fbac04569940e04393d249b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/matpol.cc
re690a91 rea7ecf 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: matpol.cc,v 1. 5 2005-10-26 15:35:35 Singular Exp $ */4 /* $Id: matpol.cc,v 1.6 2006-10-17 16:24:45 Singular Exp $ */ 5 5 6 6 /* … … 149 149 pNormalize(p); 150 150 for (k=m*n-1; k>0; k--) 151 { 152 a->m[k] = pMult(a->m[k], pCopy(p)); 153 } 151 { 152 if (a->m[k]!=NULL) 153 a->m[k] = pMult(a->m[k], pCopy(p)); 154 } 154 155 a->m[0] = pMult(a->m[0], p); 155 156 return a; … … 215 216 for (k=1; k<=p; k++) 216 217 { 217 s = ppMult_qq(MATELEM(a,i,k), MATELEM(b,k,j)); 218 t = pAdd(t,s); 218 if ((MATELEM(a,i,k)!=NULL) && (MATELEM(b,k,j)!=NULL)) 219 { 220 s = ppMult_qq(MATELEM(a,i,k), MATELEM(b,k,j)); 221 t = pAdd(t,s); 222 } 219 223 } 220 224 pNormalize(t); … … 339 343 #endif 340 344 /*2 341 * entries of a are minors and go to result (only if not in R) 345 * entries of a are minors and go to result (only if not in R) 342 346 */ 343 347 void mpMinorToResult(ideal result, int &elems, matrix a, int r, int c, … … 1817 1821 } 1818 1822 else if (MATELEM(U,i,j)!=NULL) return FALSE; 1819 } 1823 } 1820 1824 } 1821 1825 return TRUE;
Note: See TracChangeset
for help on using the changeset viewer.