Changeset 213d64 in git


Ignore:
Timestamp:
Sep 6, 2011, 7:41:41 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cdfcdb8287f66bc6070028082cbbc6eff10e609b')
Children:
8971393da48956f59e22d5443b7384017185f219
Parents:
08e15e7aa667fe0a2a40175b200adac4ea0592ca
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-06 19:41:41+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:32+01:00
Message:
CHG: rootArranger::listOfRoots deals with lists => moved to Singular/ipshell.cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r08e15e7 r213d64  
    5757#include <coeffs/mpr_complex.h>
    5858#include <coeffs/longrat.h>
     59
    5960#include <numeric/mpr_base.h>
    6061#include <numeric/mpr_numeric.h>
     
    45164517  {
    45174518    arranger->arrange();
    4518     listofroots= arranger->listOfRoots( gmp_output_digits );
     4519    listofroots= listOfRoots(arranger, gmp_output_digits );
    45194520  }
    45204521  else
     
    45454546
    45464547// from mpr_numeric.cc
    4547 lists rootArranger::listOfRoots( const unsigned int oprec )
     4548lists listOfRoots( rootArranger* self, const unsigned int oprec )
    45484549{
    45494550  int i,j,tr;
    4550   int count= roots[0]->getAnzRoots(); // number of roots
    4551   int elem= roots[0]->getAnzElems();  // number of koordinates per root
     4551  int count= self->roots[0]->getAnzRoots(); // number of roots
     4552  int elem= self->roots[0]->getAnzElems();  // number of koordinates per root
    45524553
    45534554  lists listofroots= (lists)omAlloc( sizeof(slists) ); // must be done this way!
    45544555
    4555   if ( found_roots )
     4556  if ( self->found_roots )
    45564557  {
    45574558    listofroots->Init( count );
     
    45664567        {
    45674568          onepoint->m[j].rtyp=STRING_CMD;
    4568           onepoint->m[j].data=(void *)complexToStr((*roots[j])[i],oprec,
    4569                           currRing->cf);
     4569          onepoint->m[j].data=(void *)complexToStr((*self->roots[j])[i],oprec, currRing->cf);
    45704570        }
    45714571        else
    45724572        {
    45734573          onepoint->m[j].rtyp=NUMBER_CMD;
    4574           onepoint->m[j].data=(void *)nCopy((number)(roots[j]->getRoot(i)));
     4574          onepoint->m[j].data=(void *)n_Copy((number)(self->roots[j]->getRoot(i)), currRing->cf);
    45754575        }
    45764576        onepoint->m[j].next= NULL;
  • numeric/mpr_numeric.h

    r08e15e7 r213d64  
    145145//<-
    146146
     147class slists; typedef slists * lists;
     148
    147149//-> class rootArranger
    148150class rootArranger
    149151{
    150152public:
     153  friend lists listOfRoots( rootArranger*, const unsigned int oprec );
     154   
    151155  rootArranger( rootContainer ** _roots,
    152156                rootContainer ** _mu,
     
    156160  void solve_all();
    157161  void arrange();
    158 
    159   lists listOfRoots( const unsigned int oprec );
    160162
    161163  const bool success() { return found_roots; }
Note: See TracChangeset for help on using the changeset viewer.