Changeset d3e630 in git for kernel/clapsing.cc


Ignore:
Timestamp:
Jul 28, 2009, 4:19:05 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '1170388a280084e303867145f98985f03b2af06d')
Children:
a07e45cfc61927c5711cee673474fb891d4574ac
Parents:
01cda73e965c4d5da3e4d30eb09639f00d9fbe4d
Message:
*hannes: code cleanup (see ChangeLog)


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

Legend:

Unmodified
Added
Removed
  • kernel/clapsing.cc

    r01cda73 rd3e630  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.36 2009-03-17 16:51:31 Singular Exp $
     5// $Id: clapsing.cc,v 1.37 2009-07-28 14:15:05 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    2020#include <factory.h>
    2121#include "clapconv.h"
    22 #ifdef HAVE_LIBFAC_P
    2322#include <factor.h>
    2423//CanonicalForm algcd(const CanonicalForm & F, const CanonicalForm & g, const CFList & as, const Varlist & order);
    2524CanonicalForm alg_gcd(const CanonicalForm &, const CanonicalForm &, const CFList &);
    26 #endif
    2725#include "ring.h"
    2826
     
    240238    {
    241239    #if 0
    242     #ifdef HAVE_LIBFAC_P
    243240      if (( nGetChar()==1 ) /* Q(a) */ && (!isOn(SW_USE_QGCD)))
    244241      {
     
    256253      }
    257254      else
    258       #endif
    259255      #endif
    260256      {
     
    782778
    783779int singclap_factorize_retry;
    784 #ifdef HAVE_LIBFAC_P
    785780extern int libfac_interruptflag;
    786 #endif
    787781
    788782ideal singclap_factorize ( poly f, intvec ** v , int with_exps)
     
    914908    else /* Fp */
    915909    {
    916 #ifdef HAVE_LIBFAC_P
    917910      do
    918911      {
     
    921914      }
    922915      while ((libfac_interruptflag!=0) ||(L.isEmpty()));
    923 #else
    924       goto notImpl;
    925 #endif
    926916    }
    927917  }
     
    959949      {
    960950        CanonicalForm G( convSingTrPFactoryP( f ) );
    961 #ifdef HAVE_LIBFAC_P
    962951        //  over Q(a) / multivariate over Fp(a)
    963952        do
     
    971960        #endif
    972961        libfac_interruptflag=0;
    973 #else
    974         WarnS("complete factorization only for univariate polynomials");
    975         if (rField_is_Q_a() ||(!F.isUnivariate())) /* Q(a) */
    976         {
    977           L = factorize( G );
    978         }
    979         else
    980         {
    981           L = factorize( G, a );
    982         }
    983 #endif
    984962      }
    985963    }
     
    993971      else /* Fp(a) */
    994972      {
    995 #ifdef HAVE_LIBFAC_P
    996973        L = Factorize( F );
    997 #else
    998         goto notImpl;
    999 #endif
    1000974      }
    1001975    }
     
    13671341matrix singclap_irrCharSeries ( ideal I)
    13681342{
    1369 #ifdef HAVE_LIBFAC_P
    13701343  if (idIs0(I)) return mpNew(1,1);
    13711344
     
    14561429  Off(SW_RATIONAL);
    14571430  return res;
    1458 #else
    1459   return NULL;
    1460 #endif
    14611431}
    14621432
    14631433char* singclap_neworder ( ideal I)
    14641434{
    1465 #ifdef HAVE_LIBFAC_P
    14661435  int i;
    14671436  Off(SW_RATIONAL);
     
    15431512  if (s[strlen(s)-1]==',') s[strlen(s)-1]='\0';
    15441513  return s;
    1545 #else
    1546   return NULL;
    1547 #endif
    15481514}
    15491515
Note: See TracChangeset for help on using the changeset viewer.