spielwiese
Last change
on this file since 42ea848 was
6051d87,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
FIX: Manual examples need adaptation to be tests (due to HW/build-dependent output)
|
-
Property mode set to
100644
|
File size:
863 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "sheafcoh.lib"; |
---|
3 | ring R=0,(x,y,z,u,v),dp; |
---|
4 | module M=maxideal(3); |
---|
5 | homog(M); |
---|
6 | // compute presentation matrix for truncated module (R/<x,y,z,u>^3)_(>=2) |
---|
7 | int t=timer; |
---|
8 | module M2t=truncate(M,2); |
---|
9 | t = timer - t; |
---|
10 | // "// Simple truncate: ", t; |
---|
11 | t=timer; |
---|
12 | module M2=truncateFast(std(M),2); |
---|
13 | t = timer - t; |
---|
14 | // "// Fast truncate: ", t; |
---|
15 | print(M2); |
---|
16 | "// Check: M2t == M2?: ", size(NF(M2, std(M2t))) + size(NF(M2t, std(M2))); |
---|
17 | dimGradedPart(M2,1); |
---|
18 | dimGradedPart(M2,2); |
---|
19 | // this should coincide with: |
---|
20 | dimGradedPart(M,2); |
---|
21 | // shift grading by 1: |
---|
22 | intvec v=1; |
---|
23 | attrib(M,"isHomog",v); |
---|
24 | t=timer; |
---|
25 | M2t=truncate(M,2); |
---|
26 | t = timer - t; |
---|
27 | // "// Simple truncate: ", t; |
---|
28 | t=timer; |
---|
29 | M2=truncateFast(std(M),2); |
---|
30 | t = timer - t; |
---|
31 | // "// Fast truncate: ", t; |
---|
32 | print(M2); |
---|
33 | "// Check: M2t == M2?: ", size(NF(M2, std(M2t))) + size(NF(M2t, std(M2))); //? |
---|
34 | dimGradedPart(M2,3); |
---|
35 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.