Changeset b9b906 in git for Singular/LIB/tst.lib
- Timestamp:
- Jan 16, 2001, 2:48:47 PM (23 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 081d28e7da33af82545a27eb9f8ee82b0884b9f0
- Parents:
- 4e3468f1f6473297e317588e34a7719e241780f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/tst.lib
r4e3468 rb9b906 1 // $Id: tst.lib,v 1.3 1 2000-12-31 15:14:47 obachmanExp $1 // $Id: tst.lib,v 1.32 2001-01-16 13:48:47 Singular Exp $ 2 2 //(obachman, last modified 6/30/98) 3 3 ///////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: tst.lib,v 1.3 1 2000-12-31 15:14:47 obachmanExp $";5 version="$Id: tst.lib,v 1.32 2001-01-16 13:48:47 Singular Exp $"; 6 6 category="Utilities"; 7 7 info=" … … 23 23 test whether two std's are \"equal\" 24 24 25 tst_test_res(ideal i) test different res commands for homog ideal i 25 tst_test_res(ideal i) test different res commands for homog ideal i 26 26 "; 27 27 … … 195 195 RETURN: none 196 196 PURPOSE: writes to tst-output the current memory usage and used CPU time. 197 If no integer argument is given, the elapsed CPU time since 197 If no integer argument is given, the elapsed CPU time since 198 198 the last call to tst_status() is reported. 199 199 If an integer argument is given, the elapsed CPU time since the … … 207 207 { 208 208 int start_up; 209 209 210 210 if (size(#) > 0) 211 211 { … … 278 278 { 279 279 string outfile = ""; 280 280 281 281 if (size(#) > 0) 282 282 { … … 391 391 { 392 392 string prefix = "OutTimer"; 393 393 394 394 if (size(#) > 0) 395 395 { … … 585 585 { 586 586 int ret = 1; 587 587 588 588 if (! homog(i)) 589 589 { 590 590 ERROR("ERROR: input ideal needs to be homogenous "); 591 591 } 592 592 593 593 if (size(#) == 0) 594 594 { … … 596 596 resolution rm = mres(i,0); 597 597 } 598 598 599 599 resolution rh = hres(i,0); 600 600 resolution rl = lres(i, 0); 601 601 602 602 if (size(#) == 0) 603 603 { … … 605 605 intmat im = betti(rm); 606 606 } 607 607 608 608 intmat ih = betti(rh); 609 609 intmat il = betti(rl); … … 615 615 if (size(ih) != size(im)){"ERROR: size(ih) != size(im)";return(0);} 616 616 } 617 617 618 618 if (ih != il){"ERROR: ih != il";return(0);} 619 619 if (size(#) == 0) … … 645 645 if (size(ih_1) != size(im_1)){"ERROR: size(ih_1) != size(im_1)";return(0);} 646 646 } 647 647 648 648 if (ih_1 != il_1){"ERROR: ih_1 != il_1";return(0);} 649 649 if (size(#) == 0) … … 653 653 } 654 654 655 655 656 656 if (size(ih) != size(ih_1)) {"ERROR: size(ih) != size(ih_1)";return(0);} 657 657 if (ih != ih_1) {"ERROR: ih != ih_1";return(0);} … … 688 688 } 689 689 return (m); 690 } 691 690 } 691 692 692 proc tst_rgen_generate_block(int n_vars, string simple_ordering, int extra_weights) 693 693 { … … 697 697 extra_weights = n_vars; 698 698 } 699 699 700 700 if ((simple_ordering[1] == "W") || (simple_ordering[1] == "w")) 701 701 { … … 704 704 else 705 705 { 706 if (simple_ordering[1] == "M") 706 if (simple_ordering[1] == "M") 707 707 { 708 708 order = order + "(" + string(tst_rgen_init_matrix(n_vars)) + ")"; … … 725 725 int j; 726 726 list blocks; 727 727 728 728 for (i=1; i<=size(simple_orderings); i++) 729 729 { … … 743 743 list nb_orderings; 744 744 string n_ordering; 745 745 746 746 for (i=1;i<=size(products);i++) 747 747 { … … 769 769 } 770 770 } 771 else 771 else 772 772 { 773 773 if (products[i] == 1) … … 829 829 export(tst_rgen_exp_bounds); 830 830 } 831 831 832 832 if (! defined(tst_rgen_char_index)) 833 833 { … … 872 872 tst_rgen_ordering_index = 1; 873 873 } 874 874 875 875 if (tst_rgen_nvars[tst_rgen_var_index] <= 26) 876 876 { … … 892 892 rs = rs + "c," + tst_rgen_orderings[tst_rgen_ordering_index]; 893 893 } 894 else 894 else 895 895 { 896 896 if (tst_rgen_comp_orderings[tst_rgen_comp_index] == "C") … … 898 898 rs = rs + tst_rgen_orderings[tst_rgen_ordering_index] + ", C"; 899 899 } 900 else 900 else 901 901 { 902 902 if (tst_rgen_comp_orderings[tst_rgen_comp_index] == "c") … … 911 911 } 912 912 } 913 if (size(tst_rgen_exp_bounds) > 0) 913 if (size(tst_rgen_exp_bounds) > 0) 914 914 { 915 915 if (! defined(tst_rgen_Lring)) … … 932 932 rs = rs + ")"; 933 933 } 934 934 935 935 return (rs); 936 936 } … … 958 958 int i, j, k, l; 959 959 ideal id; 960 960 961 961 poly p, q; 962 962 for (i=1; i<n; i++) … … 985 985 id[i] = p; 986 986 } 987 987 988 988 p = var(1); 989 989 for (i=2;i<=n;i++) … … 1047 1047 module m; 1048 1048 ideal idl = 1, maxideal(1); 1049 1049 1050 1050 if (Module > 0) 1051 1051 { … … 1095 1095 { 1096 1096 int i, is, s; 1097 1097 1098 1098 for (i=1; i<=size(id); i++) 1099 1099 { … … 1104 1104 "s : " + string(s); 1105 1105 } 1106 1106
Note: See TracChangeset
for help on using the changeset viewer.