Changeset 932175 in git


Ignore:
Timestamp:
Apr 10, 2009, 3:04:12 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
407fdc0e70b9d6f49eedf3751a12540195d0488b
Parents:
e3b9bf1cdb9088017e940a91a1ea11d4621a34d2
Message:
*hannes: syntax fix


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/gkdim.lib

    re3b9bf r932175  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: gkdim.lib,v 1.12 2009-04-09 12:04:41 seelisch Exp $";
     2version="$Id: gkdim.lib,v 1.13 2009-04-10 13:04:12 Singular Exp $";
    33category="Noncommutative";
    44info="
     
    5454{
    5555  def M = L[1];
     56  int d = -1;
    5657  if (typeof(M)=="ideal")
    5758  {
    58     int d=idGKdim(M);
     59    d=idGKdim(M);
    5960  }
    6061  else
     
    7273        M=std(M);
    7374      }
    74       int d = -1;
    7575      int n = ncols(M); // Num of vectors defining M
    7676      int m = nrows(M); // The rank of the free module where M is imbedded
     
    9595    else
    9696    {
    97       string d="Error: The input must be an ideal, a module or a matrix.";
     97      ERROR("The input must be an ideal, a module or a matrix.");
    9898    }
    99  }
    100  return (d);
     99  }
     100  return (d);
    101101}
    102102example
     
    118118  ideal B = 1;
    119119  GKdim(B);
    120   GKdim(0) == nvars(basering);  // should be true, i.e., evaluated to 1
     120  GKdim(ideal(0)) == nvars(basering);  // should be true, i.e., evaluated to 1
    121121}
    122122///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.