Changeset b16644 in git
- Timestamp:
- Jun 30, 1998, 6:31:24 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a27df307c91f70f0f5d41b82d969ab659daea3b6
- Parents:
- 1b43cfe16aa9a713a667bfa57eb3f37d7fe9400f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_algorithm.h
r1b43cf rb16644 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_algorithm.h,v 1.1 0 1998-03-12 10:26:47schmidt Exp $ */2 /* $Id: cf_algorithm.h,v 1.11 1998-06-30 16:31:24 schmidt Exp $ */ 3 3 4 4 #ifndef INCL_CF_ALGORITHM_H … … 9 9 // cf_algorithm.h - declarations of higher level algorithms. 10 10 // 11 // Header file corresponds to: cf_algorithms.cc, cf_chinese.cc, 12 // cf_factor.cc, cf_linsys.cc, cf_resultant.cc 13 // 14 // Hierarchy: mathematical algorithms on canonical forms 15 // 16 // Developers note: 17 // ---------------- 11 18 // This header file collects declarations of most of the 12 // functions in factory which implement higher level algorithms19 // functions in Factory which implement higher level algorithms 13 20 // on canonical forms (factorization, gcd, etc.) and declarations 14 // of some low level mathematical functions, too (absolute val e,21 // of some low level mathematical functions, too (absolute value, 15 22 // euclidean norm, etc.). 16 //17 // This header file corresponds to:18 //19 // cf_algorithms.cc, cf_chinese.cc, cf_factor.cc, cf_linsys.cc,20 // cf_resultant.cc21 23 // 22 24 //}}} … … 82 84 // returned, otherwise `f'. 83 85 // 84 // Most useful for integers and rationals. May be used to 85 // sign-normalize the leading coefficient of arbitrary 86 // polynomials, too. 86 // This behaviour is most useful for integers and rationals. But 87 // it may be used to sign-normalize the leading coefficient of 88 // arbitrary polynomials, too. 89 // 90 // Type info: 91 // ---------- 92 // f: CurrentPP 87 93 // 88 94 //}}} … … 90 96 abs ( const CanonicalForm & f ) 91 97 { 92 // it is not only more general using `sign()', it is faster, too 98 // it is not only more general to use `sign()' instead of a 99 // direct comparison `f < 0', it is faster, too 93 100 if ( sign( f ) < 0 ) 94 101 return -f;
Note: See TracChangeset
for help on using the changeset viewer.