[35aab3] | 1 | #ifndef SPARSEMAT_H |
---|
| 2 | #define SPARSEMAT_H |
---|
| 3 | /******************************************************************* |
---|
| 4 | * Computer Algebra System SINGULAR |
---|
| 5 | * |
---|
| 6 | * sparsmat.h: operations with sparse matrices |
---|
| 7 | * (bareis, ...) |
---|
| 8 | * |
---|
| 9 | *******************************************************************/ |
---|
[341696] | 10 | /* $Id$ */ |
---|
[35aab3] | 11 | |
---|
| 12 | |
---|
| 13 | poly smMult(poly, poly); |
---|
| 14 | void smPolyDiv(poly, poly); |
---|
| 15 | poly smMultDiv(poly, poly, const poly); |
---|
| 16 | void smSpecialPolyDiv(poly, poly); |
---|
| 17 | /* ----------------- macros ------------------ */ |
---|
| 18 | /* #define OLD_DIV 1 */ |
---|
| 19 | |
---|
| 20 | #ifdef OLD_DIV |
---|
| 21 | #define SM_MULT(A,B,C) smMult(A,B) |
---|
| 22 | #define SM_DIV smPolyDiv |
---|
| 23 | #else |
---|
| 24 | #define SM_MULT smMultDiv |
---|
| 25 | #define SM_DIV smSpecialPolyDiv |
---|
| 26 | #endif |
---|
| 27 | |
---|
| 28 | poly smCallDet(ideal I); |
---|
| 29 | void smCallBareiss(ideal smat, int x, int y, ideal & M, intvec ** iv); |
---|
| 30 | void smCallNewBareiss(ideal smat, int x, int y, ideal & M, intvec ** iv); |
---|
| 31 | ideal smCallSolv(ideal I); |
---|
| 32 | |
---|
[0b5e3d] | 33 | void smRingChange(ring *, sip_sring &, long); |
---|
[35aab3] | 34 | void smRingClean(ring, ip_sring &); |
---|
[0b5e3d] | 35 | long smExpBound(ideal, int, int, int); |
---|
[35aab3] | 36 | BOOLEAN smCheckDet(ideal, int, BOOLEAN); |
---|
| 37 | #endif |
---|