Changeset 2f5862 in git


Ignore:
Timestamp:
Mar 12, 1998, 3:32:36 PM (25 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
80532d7b76621cdf9061c0414552a3235508e084
Parents:
195424a9a77b57c412c3492fea3a288b9e27eb68
Message:
	* cf_gcd.cc (maxnorm): function removed.  All references replaced
	  by `maxNorm()'.


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

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd.cc

    r195424 r2f5862  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_gcd.cc,v 1.19 1998-03-12 10:27:48 schmidt Exp $ */
     2/* $Id: cf_gcd.cc,v 1.20 1998-03-12 14:32:36 schmidt Exp $ */
    33
    44#include <config.h>
     
    5757}
    5858
    59 //{{{ static CanonicalForm maxnorm ( const CanonicalForm & f )
    60 //{{{ docu
    61 //
    62 // maxnorm() - return the maximum of the absolute values of all
    63 //   coefficients of f.
    64 //
    65 // The absolute value and the maximum are calculated with respect
    66 // to operator < on canonical forms which is most meaningful for
    67 // rational numbers and integers.
    68 //
    69 // Used by gcd_poly_univar0().
    70 //
    71 //}}}
    72 static CanonicalForm
    73 maxnorm ( const CanonicalForm & f )
    74 {
    75     CanonicalForm m = 0;
    76     CFIterator i;
    77     for ( i = f; i.hasTerms(); i++ )
    78         m = tmax( m, abs( i.coeff() ) );
    79     return m;
    80 }
    81 //}}}
    82 
    8359//{{{ static CanonicalForm balance ( const CanonicalForm & f, const CanonicalForm & q )
    8460//{{{ docu
     
    214190//      maxnorm(g)*power(CanonicalForm(2),g.degree())*isqrt(g.degree()+1)
    215191//      )+1;
    216     M = tmin( maxnorm(f), maxnorm(g) );
     192    M = tmin( maxNorm(f), maxNorm(g) );
    217193    BB = power(CanonicalForm(2),tmin(f.degree(),g.degree()))*M;
    218194    q = 0;
Note: See TracChangeset for help on using the changeset viewer.