Changeset a1ec00e in git for factory


Ignore:
Timestamp:
Dec 17, 1997, 12:30:06 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
Children:
535f7b551d1182f53551d206bdf73560068248cf
Parents:
f2b01eca27ace002359c34b3357e1f36bfdc519e
Message:
	* int_cf.cc (InternalCF::sign): method made pure virtual.
	  Declaration adapted.

	* int_cf.cc (taildegree): bug fix.  Did not check whether CO is
	  zero.

	* int_cf.cc (coeff): explicit cast to CanonicalForm added

	* int_cf.cc (comparecoeff): function made pure virtual.
	  Declarations adapted.


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

Legend:

Unmodified
Added
Removed
  • factory/int_cf.cc

    rf2b01e ra1ec00e  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_cf.cc,v 1.8 1997-10-10 10:49:53 schmidt Exp $ */
     2/* $Id: int_cf.cc,v 1.9 1997-12-17 11:30:06 schmidt Exp $ */
    33
    44#include <config.h>
     
    5555InternalCF::taildegree ()
    5656{
    57     return 0;
     57    if ( isZero() )
     58        return -1;
     59    else
     60        return 0;
    5861}
    5962//}}}
     
    7477//}}}
    7578
    76 //{{{ int InternalCF::sign () const
    77 // docu: see CanonicalForm::sign()
    78 int
    79 InternalCF::sign () const
    80 {
    81     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
    82     return 0;
    83 }
    84 //}}}
    85 
    8679//{{{ InternalCF * InternalCF::sqrt ()
    8780// docu: see CanonicalForm::sqrt()
     
    8982InternalCF::sqrt ()
    9083{
    91     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
     84    ASSERT1( 0, "sqrt() not implemented for class %s", this->classname() );
    9285    return 0;
    9386}
     
    9992InternalCF::ilog2 ()
    10093{
    101     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
     94    ASSERT1( 0, "ilog2() not implemented for class %s", this->classname() );
    10295    return 0;
    10396}
    10497//}}}
    10598
     99//{{{ CanonicalForm InternalCF::coeff ( int i )
     100// docu: see CanonicalForm::operator []()
    106101CanonicalForm
    107102InternalCF::coeff ( int i )
     
    110105        return CanonicalForm( copyObject() );
    111106    else
    112         return 0;
     107        return CanonicalForm( 0 );
    113108}
     109//}}}
    114110
    115111int
    116112InternalCF::intval() const
    117113{
    118     ASSERT1( 0, "illegal conversion: not implemented for class %s", this->classname() );
     114    ASSERT1( 0, "intval() not implemented for class %s", this->classname() );
    119115    return 0;
    120116}
     
    123119InternalCF::invert()
    124120{
    125     ASSERT1( 0, "internal factory error: not implemented for class %s", this->classname() );
     121    ASSERT1( 0, "invert() not implemented for class %s", this->classname() );
    126122    return 0;
    127123}
    128 
    129 int
    130 InternalCF::comparecoeff ( InternalCF* )
    131 {
    132     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
    133     return 0;
    134 }
Note: See TracChangeset for help on using the changeset viewer.