Changeset ab0444 in git for factory/int_cf.cc


Ignore:
Timestamp:
Oct 10, 1997, 12:23:17 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ea023f348141a73f5256124e56811ca67beb49bd
Parents:
1be0737621cf02343ddf8f049c613c26e6260103
Message:
	* int_cf.cc (den): returns 'CFFactory::basic( 1 )' instead of
	  'genOne()'


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

Legend:

Unmodified
Added
Removed
  • factory/int_cf.cc

    r1be073 rab0444  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_cf.cc,v 1.5 1997-09-10 15:39:52 schmidt Exp $ */
     2/* $Id: int_cf.cc,v 1.6 1997-10-10 10:23:17 schmidt Exp $ */
    33
    44#include <config.h>
     
    99#include "int_cf.h"
    1010#include "canonicalform.h"
     11#include "cf_factory.h"
    1112
    12 
     13//{{{ CanonicalForm InternalCF::lc (), Lc (), LC ()
     14// docu: see CanonicalForm::lc(), Lc(), LC()
    1315CanonicalForm
    14 InternalCF::lc()
     16InternalCF::lc ()
    1517{
    1618    return CanonicalForm( copyObject() );
     
    1820
    1921CanonicalForm
    20 InternalCF::LC()
     22InternalCF::Lc ()
    2123{
    2224    return CanonicalForm( copyObject() );
    2325}
    2426
     27CanonicalForm
     28InternalCF::LC ()
     29{
     30    return CanonicalForm( copyObject() );
     31}
     32//}}}
     33
     34//{{{ int InternalCF::degree ()
     35// docu: see CanonicalForm::degree()
    2536int
    26 InternalCF::degree()
     37InternalCF::degree ()
    2738{
    2839    if ( isZero() )
     
    3142        return 0;
    3243}
     44//}}}
    3345
     46//{{{ CanonicalForm InternalCF::tailcoeff (), int InternalCF::taildegree ()
     47// docu: see CanonicalForm::tailcoeff(), taildegree()
    3448CanonicalForm
    35 InternalCF::tailcoeff()
     49InternalCF::tailcoeff ()
    3650{
    3751    return CanonicalForm( copyObject() );
     
    3953
    4054int
    41 InternalCF::taildegree()
     55InternalCF::taildegree ()
    4256{
    4357    return 0;
    4458}
     59//}}}
     60
     61//{{{ InternalCF* InternalCF::num (), den ()
     62// docu: see CanonicalForm::num(), den()
     63InternalCF*
     64InternalCF::num ()
     65{
     66    return copyObject();
     67}
     68
     69InternalCF*
     70InternalCF::den ()
     71{
     72    return CFFactory::basic( 1 );
     73}
     74//}}}
     75
     76//{{{ int InternalCF::sign () const
     77// docu: see CanonicalForm::sign()
     78int
     79InternalCF::sign () const
     80{
     81    ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
     82    return 0;
     83}
     84//}}}
     85
     86//{{{ InternalCF* InternalCF::sqrt ()
     87// docu: see CanonicalForm::sqrt()
     88InternalCF*
     89InternalCF::sqrt ()
     90{
     91    ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
     92    return 0;
     93}
     94//}}}
     95
     96//{{{ int InternalCF::ilog2 ()
     97// docu: see CanonicalForm::ilog2()
     98int
     99InternalCF::ilog2 ()
     100{
     101    ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
     102    return 0;
     103}
     104//}}}
    45105
    46106CanonicalForm
     
    60120}
    61121
    62 //{{{ int InternalCF::sign () const
    63 // docu: see CanonicalForm::sign()
    64 int
    65 InternalCF::sign () const
    66 {
    67     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
    68     return 0;
    69 }
    70 //}}}
    71 
    72122InternalCF*
    73123InternalCF::invert()
     
    75125    ASSERT1( 0, "internal factory error: not implemented for class %s", this->classname() );
    76126    return 0;
    77 }
    78 
    79 InternalCF*
    80 InternalCF::num()
    81 {
    82     return copyObject();
    83 }
    84 
    85 InternalCF*
    86 InternalCF::den()
    87 {
    88     return genOne();
    89127}
    90128
     
    95133    return 0;
    96134}
    97 
    98 InternalCF*
    99 InternalCF::sqrt()
    100 {
    101     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
    102     return 0;
    103 }
    104 
    105 //{{{ int InternalCF::ilog2()
    106 // docu: see CanonicalForm::ilog2()
    107 int
    108 InternalCF::ilog2()
    109 {
    110     ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
    111     return 0;
    112 }
    113 //}}}
Note: See TracChangeset for help on using the changeset viewer.