Changeset 6d37e8 in git for Singular/LIB/linalg.lib


Ignore:
Timestamp:
Apr 11, 2002, 4:51:50 PM (21 years ago)
Author:
Eric Westenberger <westenb@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
0e8152ebb2559f1aabc537bc2bd088ef1c8c1041
Parents:
ca41246411e667fc0037f19eb53bf1a019285622
Message:
*westenb: removed static proc abs, call now absValue from general.lib


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/linalg.lib

    rca41246 r6d37e8  
    11//GMG last modified: 04/25/2000
    22//////////////////////////////////////////////////////////////////////////////
    3 version="$Id: linalg.lib,v 1.31 2002-03-26 12:41:43 mschulze Exp $";
     3version="$Id: linalg.lib,v 1.32 2002-04-11 14:48:43 westenb Exp $";
    44category="Linear Algebra";
    55info="
     
    3737LIB "ring.lib";
    3838LIB "elim.lib";
     39LIB "general.lib";
    3940//////////////////////////////////////////////////////////////////////////////
    4041// help functions
    4142//////////////////////////////////////////////////////////////////////////////
    42 static proc abs(poly c)
    43 "RETURN: absolut value of c, c must be constants"
    44 {
    45   if(c>=0){ return(c);}
    46   else{ return(-c);}
    47 }
    48 
    4943static proc const_mat(matrix A)
    5044"RETURN:   1 (0) if A is (is not) a constant matrix"
     
    797791      jp=i;pivo=0;
    798792      for(j=i+1;j<=n;j=j+1){
    799         c=abs(A[j,i+k]);
     793        c=absValue(A[j,i+k]);
    800794        if(pivo<c){ pivo=c;jp=j;}
    801795      }
     
    884878
    885879    //Pivotisierung
    886     pivo=abs(A[i,i+k]);jp=i;
     880    pivo=absValue(A[i,i+k]);jp=i;
    887881    for(j=i+1;j<=n;j=j+1){
    888       c=abs(A[j,i+k]);
     882      c=absValue(A[j,i+k]);
    889883      if(pivo<c){ pivo=c;jp=j;}
    890884    }
Note: See TracChangeset for help on using the changeset viewer.