Changeset 2fd30cb in git for Singular/LIB


Ignore:
Timestamp:
Dec 20, 2010, 9:30:02 PM (13 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9e269a0a45fc3fa26da7b381bc6593a5b4b7df4d
Parents:
8f1d129f2b533ec4af12b38b87c5090b3559afa6
Message:
*levadov: repaired findimAlgebra proc

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/nctools.lib

    r8f1d129 r2fd30cb  
    399399RETURN:  ring
    400400PURPOSE: define a finite dimensional algebra structure on a ring
    401 NOTE:  the matrix M is used to define the relations x(j)*x(i) = M[i,j] in the
     401NOTE:  the matrix M is used to define the relations x(i)*x(j) = M[i,j] in the
    402402basering (by default) or in the optional ring r.
    403403@* The procedure equips the ring with the noncommutative structure.
     
    430430    {
    431431      p=var(i)*var(j)-M[i,j];
    432       if ( (size(I)==1) && (I[1]==0) )   { I=p; }
     432      if ( (ncols(I)==1) && (I[1]==0) )   { I=p; }
    433433      else { I=I,p; }
    434434      if (j>i)
     
    443443        }
    444444        C[i,j]=c;
    445         D[i,j]= - M[j,i] +c*M[i,j];
     445        D[i,j]= M[j,i] -c*M[i,j];
    446446      }
    447447    }
     
    449449  def save = basering;
    450450  def S = nc_algebra(C,D); setring S;
    451   ideal fdQuot = fetch(save,D);
     451  ideal fdQuot = fetch(save,I);
    452452  export fdQuot;
    453453  return(S);
Note: See TracChangeset for help on using the changeset viewer.