Changeset 64e332 in git


Ignore:
Timestamp:
Jan 2, 2001, 3:33:25 PM (23 years ago)
Author:
Gert-Martin Greuel <greuel@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
cda1ad905ad654f1520fe50c63f3628c521558b0
Parents:
d26ec4a0f775fcfff7451cee3447e193c11e4e28
Message:
*GMG: Kosmetik, ERROR in invmat eingefuegt


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/jordan.lib

    rd26ec4 r64e332  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: jordan.lib,v 1.19 2000-12-22 14:09:44 greuel Exp $";
     2version="$Id: jordan.lib,v 1.20 2001-01-02 14:33:25 greuel Exp $";
    33category="Linear Algebra";
    44info="
     
    5959"USAGE:   jordan(M[,opt]); M constant square matrix, opt integer
    6060ASSUME:  The eigenvalues of M are in the coefficient field.
    61 RETURN:  The procedure returns a list jd with 3 entries of type
    62          ideal, list of intvecs, matrix with
    63          jd[1] eigenvalues of M,
    64          jd[2][i][j] size of j-th Jordan block with eigenvalue jd[1][i], and
    65          jd[3]^(-1)*M*jd[3] in Jordan normal form.
     61RETURN:  The procedure returns a list jd with 3 entries:
     62@format       
     63         - jd[1] ideal, eigenvalues of M,
     64         - jd[2] list of intvecs, jd[2][i][j] size of j-th Jordan block with
     65           eigenvalue jd[1][i], and
     66         - jd[3] a matrix, jd[3]^(-1)*M*jd[3] in Jordan normal form.
    6667         Depending on opt, only certain entries of jd are computed.
    67          If opt=-1, jd[1] is computed,
    68          if opt= 0, jd[1] and jd[2] are computed,
    69          if opt= 1, jd[1], jd[2], and jd[3] are computed, and,
    70          if opt= 2, jd[1] and jd[3] are computed.
     68           If opt=-1, jd[1] is computed,
     69           if opt= 0, jd[1] and jd[2] are computed,
     70           if opt= 1, jd[1], jd[2], and jd[3] are computed, and,
     71           if opt= 2, jd[1] and jd[3] are computed.
    7172         By default, opt=0.
     73@end format
    7274NOTE:    A non constant polynomial matrix M is replaced by its constant part.
    7375DISPLAY: The procedure displays comments if printlevel>=1.
     
    400402proc jordanmatrix(list jd)
    401403"USAGE:   jordanmatrix(jd); jd list of ideal and list of intvecs
    402 RETURN:  The procedure returns the Jordan matrix J with eigenvalues jd[1] and
    403          size jd[2][i][j] of j-th Jordan block with eigenvalue jd[1][i].
     404RETURN:  The procedure returns the Jordan matrix J, satisfying:
     405@*       - eigenvalues of J are given by jd[1]
     406@*       - j-th Jordan block of J with eigenvalue jd[1][i] has size jd[2][i][j]
    404407DISPLAY: The procedure displays comments if printlevel>=1.
    405408EXAMPLE: example jordanmatrix; shows an example.
     
    492495"USAGE:   jordanform(M); M constant square matrix
    493496ASSUME:  The eigenvalues of M are in the coefficient field.
    494 RETURN:  The procedure returns the Jordan normal form of M.
     497RETURN:  matrix, the Jordan normal form of M.
    495498NOTE:    A non constant polynomial matrix M is replaced by its constant part.
    496499DISPLAY: The procedure displays more comments for higher printlevel.
     
    523526  else
    524527  {
    525     print("//no square matrix");
    526     matrix[1][0]=invM;
     528    ERROR("// ** no square matrix");
     529    //matrix invM[1][0];
    527530  }
    528531  return(invM);
Note: See TracChangeset for help on using the changeset viewer.