Changeset d3ce7de in git
- Timestamp:
- May 19, 1998, 7:11:45 PM (25 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 54fb1cb1a9b3fc6782b9837d9a396991417a8d6a
- Parents:
- 3d40e9c77b67af8262c10ff618c95463f017eb14
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/matpol.cc
r3d40e9c rd3ce7de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: matpol.cc,v 1.1 2 1998-04-23 18:52:56 SingularExp $ */4 /* $Id: matpol.cc,v 1.13 1998-05-19 17:11:07 pohl Exp $ */ 5 5 6 6 /* … … 14 14 #include "mod2.h" 15 15 #include "tok.h" 16 #include "lists.h" 16 17 #include "polys.h" 17 18 #include "mmemory.h" … … 341 342 * return an list of ... 342 343 */ 343 matrixmpBareiss (matrix a, BOOLEAN sw)344 lists mpBareiss (matrix a, BOOLEAN sw) 344 345 { 345 346 poly div; … … 348 349 row_col_weight w(Bareiss->mpGetRdim(), Bareiss->mpGetCdim()); 349 350 intvec *v = new intvec(Bareiss->mpGetCdim()); 350 //lists res=(lists)Alloc(sizeof(slists));351 lists res=(lists)Alloc(sizeof(slists)); 351 352 352 353 if (sw) WarnS(feNotImplemented); … … 363 364 Bareiss->mpSaveArray(); 364 365 delete Bareiss; 365 /* 366 366 367 res->Init(2); 367 368 res->m[0].rtyp=MATRIX_CMD; … … 370 371 res->m[1].data=(void *)v; 371 372 return res; 372 */373 delete v;374 return c;375 373 } 376 374 … … 1194 1192 1195 1193 for (i=v->rows()-1; i>=0; i--) 1196 (*v)[i] = qcol[i] ;1194 (*v)[i] = qcol[i]+1; 1197 1195 } 1198 1196 -
Singular/matpol.h
r3d40e9c rd3ce7de 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: matpol.h,v 1. 5 1997-11-13 09:09:28 siebertExp $ */6 /* $Id: matpol.h,v 1.6 1998-05-19 17:11:45 pohl Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 46 46 poly TraceOfProd ( matrix a, matrix b, int n); 47 47 48 matrixmpBareiss (matrix a, BOOLEAN diagonal);48 lists mpBareiss (matrix a, BOOLEAN diagonal); 49 49 matrix mpOneStepBareiss (matrix a, poly *H, int *r, int *c); 50 50 poly mpDet (matrix m);
Note: See TracChangeset
for help on using the changeset viewer.