Changeset c6caf1 in git for factory


Ignore:
Timestamp:
Mar 12, 1998, 3:31:13 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
Children:
195424a9a77b57c412c3492fea3a288b9e27eb68
Parents:
17ce9d288ac1fc0cdd5ff71f3681357576be06a3
Message:
	* fac_util.cc (maxCoeff): function removed.  Declarations
	  adapted.  All references replaced by `maxNorm()'.


git-svn-id: file:///usr/local/Singular/svn/trunk@1223 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • factory/fac_ezgcd.cc

    r17ce9d rc6caf1  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_ezgcd.cc,v 1.10 1998-03-10 14:48:24 schmidt Exp $ */
     2/* $Id: fac_ezgcd.cc,v 1.11 1998-03-12 14:30:50 schmidt Exp $ */
    33
    44#include <config.h>
     
    247247
    248248    CanonicalForm limit = power( CanonicalForm(2), degree( Db ) ) *
    249         tmax( maxCoeff( Lb ), tmax( maxCoeff( Db ), maxCoeff( F ) ) );
     249        tmax( maxNorm( Lb ), tmax( maxNorm( Db ), maxNorm( F ) ) );
    250250    int p = pk.getp();
    251251    int k = pk.getk();
     
    264264{
    265265    CanonicalForm limit = power( CanonicalForm(2), tmin( degF, degG ) ) *
    266         gcd( icontent( lcF ), icontent( lcG ) ) * tmin( maxCoeff( F ), maxCoeff( G ) );
     266        gcd( icontent( lcF ), icontent( lcG ) ) * tmin( maxNorm( F ), maxNorm( G ) );
    267267    int p, i = 0;
    268268    do {
  • factory/fac_multivar.cc

    r17ce9d rc6caf1  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_multivar.cc,v 1.7 1997-08-29 08:38:28 schmidt Exp $ */
     2/* $Id: fac_multivar.cc,v 1.8 1998-03-12 14:30:55 schmidt Exp $ */
    33
    44#include <config.h>
     
    6969    for ( i = 1; i <= k; i++ )
    7070        M += degs[i];
    71     CanonicalForm b = 2 * maxCoeff( f ) * power( CanonicalForm( 3 ), M );
     71    CanonicalForm b = 2 * maxNorm( f ) * power( CanonicalForm( 3 ), M );
    7272    CanonicalForm B = p;
    7373    k = 1;
  • factory/fac_util.cc

    r17ce9d rc6caf1  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_util.cc,v 1.7 1998-03-12 10:27:15 schmidt Exp $ */
     2/* $Id: fac_util.cc,v 1.8 1998-03-12 14:31:02 schmidt Exp $ */
    33
    44#include <config.h>
     
    88#include "cf_defs.h"
    99#include "canonicalform.h"
    10 #include "cf_algorithm.h"
    1110#include "cf_iter.h"
    1211#include "fac_util.h"
     
    143142
    144143CanonicalForm
    145 maxCoeff( const CanonicalForm & f )
    146 {
    147     if ( f.inCoeffDomain() )
    148         return abs( f );
    149     else {
    150         CanonicalForm M = 0, m;
    151         for ( CFIterator i = f; i.hasTerms(); i++ )
    152             if ( (m = maxCoeff( i.coeff() )) > M )
    153                 M = m;
    154         return M;
    155     }
    156 }
    157 
    158 
    159 CanonicalForm
    160144mappksymmetric ( const CanonicalForm & f )
    161145{
  • factory/fac_util.h

    r17ce9d rc6caf1  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_util.h,v 1.5 1997-06-19 12:23:08 schmidt Exp $ */
     2/* $Id: fac_util.h,v 1.6 1998-03-12 14:31:07 schmidt Exp $ */
    33
    44#ifndef INCL_FAC_UTIL_H
     
    3939void divremainder( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & quot, CanonicalForm & rem, const modpk & pk );
    4040
    41 CanonicalForm maxCoeff( const CanonicalForm & f );
    42 
    4341bool Hensel ( const CanonicalForm & U, CFArray & G, const CFArray & lcG, const Evaluation & A, const modpk & bound, const Variable & x );
    4442
  • factory/sm_sparsemod.cc

    r17ce9d rc6caf1  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: sm_sparsemod.cc,v 1.6 1998-03-10 14:48:29 schmidt Exp $ */
     2/* $Id: sm_sparsemod.cc,v 1.7 1998-03-12 14:31:13 schmidt Exp $ */
    33
    44//{{{ docu
     
    474474    deg = 1;
    475475  CanonicalForm B, L, Bound, lcF = Leitkoeffizient( primif); //lc( primif ) ;
    476   B =  2 * maxCoeff( primif ) * maxCoeff( g ) ;
     476  B =  2 * maxNorm( primif ) * maxNorm( g ) ;
    477477  L = lcF ;
    478478  Bound = abs( 2 * B * L + 1 );
Note: See TracChangeset for help on using the changeset viewer.