Changeset 47a0ae in git for kernel/sca.h


Ignore:
Timestamp:
Feb 23, 2007, 3:39:41 PM (17 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1298784c983047d4260168f76570a5bf957d044b
Parents:
95692a4585e51835c9345c4556e2361edfa16182
Message:
+SCAQuotient(const ring) function


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

Legend:

Unmodified
Added
Removed
  • kernel/sca.h

    r95692a r47a0ae  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: sca.h,v 1.8 2007-02-16 11:05:54 motsak Exp $ */
     7/* $Id: sca.h,v 1.9 2007-02-23 14:39:41 motsak Exp $ */
    88
    99#include <ring.h>
     
    2222#endif
    2323}
     24
     25
     26// we must always have this test!
     27inline ideal SCAQuotient(const ring r)
     28{
     29  if( !rIsSCA(r) )
     30    return currQuotient;
     31
     32  // SCA!
     33#ifdef HAVE_PLURAL
     34  return r->nc->SCAQuotient();
     35#else
     36  // for sainity
     37  return NULL;
     38#endif
     39}
     40
    2441
    2542#ifdef HAVE_PLURAL
Note: See TracChangeset for help on using the changeset viewer.