Changeset a3a116 in git for Singular


Ignore:
Timestamp:
Mar 25, 2011, 8:00:56 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
611871aebf624c3f38dad1d47584a712f5bb90cf
Parents:
119e27bf4a3415daccdfebbe95c3e15772a8462c
Message:
*Simon Keicher: fixed projectlattices
*motsak: minor changes in examples

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/multigrading.lib

    r119e27b ra3a116  
    46744674    0;
    46754675
    4676   intmat L = preimageLattice(P,B);
    4677 
    4678   print(L); // should be a (3x2)-matrix with columns e.g. [1,1,-1] and [0,3,-2] (the generated lattice should be identical)
    4679  
    4680   kill B, P, L;
    4681 
     4676  // should be a (3x2)-matrix with columns e.g. [1,1,-1] and [0,3,-2] (the generated lattice should be identical)
     4677  print(preimageLattice(P,B));
    46824678}
    46834679
     
    47844780    if ( r == n )
    47854781    {
    4786       intmat U[n][1]; // U now is the n-dim zero-vector
     4782      intmat U[1][n]; // U now is the n-dim zero-vector
    47874783    }
    47884784    else
    47894785    {
    47904786      // we want a matrix with column operations so we transpose
    4791       list L = hermiteNormalForm(B, "transform"); //hermite(transpose(B), "transform");
     4787      intmat BB = transpose(B);
     4788      list L = hermiteNormalForm(BB, "transform");
    47924789      intmat U = transpose(L[2]);
    47934790
     4791 
    47944792      // delete rows 1 to r
    47954793      intmat Udel[nrows(U) - r][ncols(U)];
     
    48224820    4,8;
    48234821
    4824   // should result in a (2x4)-matrix with columns
    4825   // [-1, 2], [2, -3], [-1, 0] and [0, 1]
    4826   intmat U = projectLattice(B);
     4822  // should result in a (2x4)-matrix such that the corresponding lattice is created by
     4823  // [-1, 2], [-2, 3], [-1, 0] and [0, 1]
     4824  print(projectLattice(B));
     4825
     4826  // another example
     4827
     4828  intmat BB[4][2] =
     4829    1,0,
     4830    0,1,
     4831    0,0,
     4832    0,0;
     4833
     4834  // should result in a (2x4)-matrix such that the corresponding lattice is created by
     4835  // [0,0],[0,0],[1,0],[0,1]
     4836  print(projectLattice(BB));
     4837
     4838  // one more example
     4839
     4840  intmat BBB[3][4] =
     4841    1,0,1,2,
     4842    1,1,0,0,
     4843    3,0,0,3;
     4844
     4845  // should result in the (1x3)-matrix that consists of just zeros
     4846  print(projectLattice(BBB));
    48274847
    48284848}
     
    49144934    8,11;
    49154935
    4916   intmat U = intersectLattices(A,B);
    4917 
    4918   // should result in a (2x4)-matrix with columns
     4936  // should result in a (3x2)-matrix with columns
    49194937  //  e.g. [3, 3, 3], [-3, 0, 3] (the lattice should be the same)
    4920   print(U);
     4938  print(intersectLattices(A,B));
    49214939}
    49224940
Note: See TracChangeset for help on using the changeset viewer.