Changeset f115489 in git for dyn_modules/syzextra


Ignore:
Timestamp:
Apr 4, 2011, 5:33:01 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
411e00284c145360dd10ef3b78b69b0e3f3d5e0f
Parents:
8047af8c8db1aff17222fa052c81d384e6e62769
Message:
ADD: bugtest for ntIntDiv & p_Content using syzextra

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

git-svn-id: file:///usr/local/Singular/svn/trunk@14091 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
dyn_modules/syzextra
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/syzextra/mod_main.cc

    r8047af8 rf115489  
    88#include <kernel/longrat.h>
    99#include <kernel/kstd1.h>
     10
     11#include <kernel/polys.h>
    1012
    1113#include <Singular/tok.h>
     
    760762  return FALSE;
    761763}
    762      
     764
     765/// Get raw syzygies (idPrepare)
     766static BOOLEAN _p_Content(leftv res, leftv h)
     767{
     768  if ( !( (h!=NULL) && (h->Typ()==POLY_CMD) && (h->Data() != NULL) ) )
     769  {
     770    WerrorS("`system(\"p_Content\",<poly-var>)` expected");
     771    return TRUE;
     772  }
     773
     774
     775  const poly p = reinterpret_cast<poly>(h->Data());
     776
     777 
     778  pTest(p);  pWrite(p); PrintLn();
     779
     780 
     781  p_Content( p, currRing);     
     782
     783  pTest(p);
     784  pWrite(p); PrintLn();
     785 
     786  NoReturn(res);
     787}
     788
    763789END_NAMESPACE
    764790
     
    787813  psModulFunctions->iiAddCproc(currPack->libname,(char*)"reduce_syz",FALSE, reduce_syz);
    788814
    789 //  psModulFunctions->iiAddCproc(currPack->libname,(char*)"",FALSE, );
     815  psModulFunctions->iiAddCproc(currPack->libname,(char*)"p_Content",FALSE, _p_Content);
     816
     817  //  psModulFunctions->iiAddCproc(currPack->libname,(char*)"",FALSE, );
    790818 
    791819  return 0;
Note: See TracChangeset for help on using the changeset viewer.