Changeset 60e4be in git
- Timestamp:
- Oct 9, 2009, 4:42:07 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- a7b18ceea1f3cf51c0b57470ffc0bc09eff384bd
- Parents:
- 95a6f3a9673fd36b24fd0024a6835ad945e9a3f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/TestMinors.cc
r95a6f3 r60e4be 425 425 int columnCount = mat->ncols; 426 426 427 int* myPolyMatrix = (int*)(mat->m); 427 poly* myPolyMatrix = (poly*)(mat->m); 428 int theSize = rowCount * columnCount; 429 int myIntMatrix[theSize]; int vv; 430 for (int i = 0; i < theSize; i++) 431 { 432 vv = 0; 433 if (myPolyMatrix[i] != NULL) 434 { 435 vv = n_Int(pGetCoeff(myPolyMatrix[i]), currRing); 436 if (characteristic != 0) vv = vv % characteristic; 437 } 438 myIntMatrix[i] = vv; 439 } 440 428 441 IntMinorProcessor mp; 429 mp.defineMatrix(rowCount, columnCount, my PolyMatrix);430 431 /* The next lines are for defining the sub-matrix of my PolyMatrix442 mp.defineMatrix(rowCount, columnCount, myIntMatrix); 443 444 /* The next lines are for defining the sub-matrix of myIntMatrix 432 445 from which we want to compute all k x k - minors. 433 446 In the given setting, we want the entire matrix to form the sub-matrix. */
Note: See TracChangeset
for help on using the changeset viewer.