Changeset c6caf1 in git for factory/fac_util.cc


Ignore:
Timestamp:
Mar 12, 1998, 3:31:13 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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{
Note: See TracChangeset for help on using the changeset viewer.