Changeset b9b906 in git for Singular/LIB/tst.lib


Ignore:
Timestamp:
Jan 16, 2001, 2:48:47 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
081d28e7da33af82545a27eb9f8ee82b0884b9f0
Parents:
4e3468f1f6473297e317588e34a7719e241780f9
Message:
*hannes: lib format revisited


git-svn-id: file:///usr/local/Singular/svn/trunk@5078 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/tst.lib

    r4e3468 rb9b906  
    1 // $Id: tst.lib,v 1.31 2000-12-31 15:14:47 obachman Exp $
     1// $Id: tst.lib,v 1.32 2001-01-16 13:48:47 Singular Exp $
    22//(obachman, last modified 6/30/98)
    33/////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: tst.lib,v 1.31 2000-12-31 15:14:47 obachman Exp $";
     5version="$Id: tst.lib,v 1.32 2001-01-16 13:48:47 Singular Exp $";
    66category="Utilities";
    77info="
     
    2323                        test whether two std's are \"equal\"
    2424
    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
    2626";
    2727
     
    195195RETURN:   none
    196196PURPOSE: 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
    198198         the last call to tst_status() is reported.
    199199         If an integer argument is given, the elapsed CPU time since the
     
    207207{
    208208  int start_up;
    209  
     209
    210210  if (size(#) > 0)
    211211  {
     
    278278  {
    279279    string outfile = "";
    280    
     280
    281281    if (size(#) > 0)
    282282    {
     
    391391{
    392392  string prefix = "OutTimer";
    393  
     393
    394394  if (size(#) > 0)
    395395  {
     
    585585{
    586586  int ret = 1;
    587  
     587
    588588  if (! homog(i))
    589589  {
    590590    ERROR("ERROR: input ideal needs to be homogenous ");
    591591  }
    592  
     592
    593593  if (size(#) == 0)
    594594  {
     
    596596    resolution rm = mres(i,0);
    597597  }
    598  
     598
    599599  resolution rh = hres(i,0);
    600600  resolution rl = lres(i, 0);
    601  
     601
    602602  if (size(#) == 0)
    603603  {
     
    605605    intmat im = betti(rm);
    606606  }
    607  
     607
    608608  intmat ih = betti(rh);
    609609  intmat il = betti(rl);
     
    615615    if (size(ih) != size(im)){"ERROR: size(ih) != size(im)";return(0);}
    616616  }
    617  
     617
    618618  if (ih != il){"ERROR: ih != il";return(0);}
    619619  if (size(#) == 0)
     
    645645    if (size(ih_1) != size(im_1)){"ERROR: size(ih_1) != size(im_1)";return(0);}
    646646  }
    647  
     647
    648648  if (ih_1 != il_1){"ERROR: ih_1 != il_1";return(0);}
    649649  if (size(#) == 0)
     
    653653  }
    654654
    655  
     655
    656656  if (size(ih) != size(ih_1)) {"ERROR: size(ih) != size(ih_1)";return(0);}
    657657  if (ih != ih_1) {"ERROR: ih != ih_1";return(0);}
     
    688688  }
    689689  return (m);
    690 } 
    691  
     690}
     691
    692692proc tst_rgen_generate_block(int n_vars, string simple_ordering, int extra_weights)
    693693{
     
    697697    extra_weights = n_vars;
    698698  }
    699  
     699
    700700  if ((simple_ordering[1] == "W") || (simple_ordering[1] == "w"))
    701701  {
     
    704704  else
    705705  {
    706     if (simple_ordering[1] == "M") 
     706    if (simple_ordering[1] == "M")
    707707    {
    708708      order = order + "(" + string(tst_rgen_init_matrix(n_vars)) + ")";
     
    725725  int j;
    726726  list blocks;
    727  
     727
    728728  for (i=1; i<=size(simple_orderings); i++)
    729729  {
     
    743743  list nb_orderings;
    744744  string n_ordering;
    745  
     745
    746746  for (i=1;i<=size(products);i++)
    747747  {
     
    769769      }
    770770    }
    771     else 
     771    else
    772772    {
    773773      if (products[i] == 1)
     
    829829    export(tst_rgen_exp_bounds);
    830830  }
    831  
     831
    832832  if (! defined(tst_rgen_char_index))
    833833  {
     
    872872    tst_rgen_ordering_index = 1;
    873873  }
    874  
     874
    875875  if (tst_rgen_nvars[tst_rgen_var_index] <= 26)
    876876  {
     
    892892      rs = rs + "c," + tst_rgen_orderings[tst_rgen_ordering_index];
    893893    }
    894     else 
     894    else
    895895    {
    896896      if (tst_rgen_comp_orderings[tst_rgen_comp_index] == "C")
     
    898898        rs = rs + tst_rgen_orderings[tst_rgen_ordering_index] + ", C";
    899899      }
    900       else 
     900      else
    901901      {
    902902        if (tst_rgen_comp_orderings[tst_rgen_comp_index] == "c")
     
    911911    }
    912912  }
    913   if (size(tst_rgen_exp_bounds) > 0) 
     913  if (size(tst_rgen_exp_bounds) > 0)
    914914  {
    915915    if (! defined(tst_rgen_Lring))
     
    932932    rs = rs + ")";
    933933  }
    934  
     934
    935935  return (rs);
    936936}
     
    958958  int i, j, k, l;
    959959  ideal id;
    960  
     960
    961961  poly p, q;
    962962  for (i=1; i<n; i++)
     
    985985    id[i] = p;
    986986  }
    987  
     987
    988988  p = var(1);
    989989  for (i=2;i<=n;i++)
     
    10471047  module m;
    10481048  ideal idl = 1, maxideal(1);
    1049  
     1049
    10501050  if (Module > 0)
    10511051  {
     
    10951095{
    10961096  int i, is, s;
    1097  
     1097
    10981098  for (i=1; i<=size(id); i++)
    10991099  {
     
    11041104  "s : " + string(s);
    11051105}
    1106  
     1106
Note: See TracChangeset for help on using the changeset viewer.