Changeset 6d37e8 in git for Singular/LIB/linalg.lib
- Timestamp:
- Apr 11, 2002, 4:51:50 PM (21 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 0e8152ebb2559f1aabc537bc2bd088ef1c8c1041
- Parents:
- ca41246411e667fc0037f19eb53bf1a019285622
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/linalg.lib
rca41246 r6d37e8 1 1 //GMG last modified: 04/25/2000 2 2 ////////////////////////////////////////////////////////////////////////////// 3 version="$Id: linalg.lib,v 1.3 1 2002-03-26 12:41:43 mschulzeExp $";3 version="$Id: linalg.lib,v 1.32 2002-04-11 14:48:43 westenb Exp $"; 4 4 category="Linear Algebra"; 5 5 info=" … … 37 37 LIB "ring.lib"; 38 38 LIB "elim.lib"; 39 LIB "general.lib"; 39 40 ////////////////////////////////////////////////////////////////////////////// 40 41 // help functions 41 42 ////////////////////////////////////////////////////////////////////////////// 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 49 43 static proc const_mat(matrix A) 50 44 "RETURN: 1 (0) if A is (is not) a constant matrix" … … 797 791 jp=i;pivo=0; 798 792 for(j=i+1;j<=n;j=j+1){ 799 c=abs (A[j,i+k]);793 c=absValue(A[j,i+k]); 800 794 if(pivo<c){ pivo=c;jp=j;} 801 795 } … … 884 878 885 879 //Pivotisierung 886 pivo=abs (A[i,i+k]);jp=i;880 pivo=absValue(A[i,i+k]);jp=i; 887 881 for(j=i+1;j<=n;j=j+1){ 888 c=abs (A[j,i+k]);882 c=absValue(A[j,i+k]); 889 883 if(pivo<c){ pivo=c;jp=j;} 890 884 }
Note: See TracChangeset
for help on using the changeset viewer.