Changeset e9c3b2 in git for kernel/ideals.h


Ignore:
Timestamp:
Mar 15, 2011, 7:17:47 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
92e0ebb492f002a11e78b302b3758d32aedea17e
Parents:
1ed3466deda30d9e243b441fb4bc4e0c4729cf69
Message:
ADD: intvec: new view() method
ADD: some debug for NF strategy object
ADD: idSize

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

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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.h

    r1ed346 re9c3b2  
    5454#endif
    5555ideal idCopyFirstK (const ideal ide, const int k);
    56 /*- deletes an ideal -*/
     56
     57/// delete an ideal
    5758#define idDelete(h) id_Delete(h, currRing)
    5859void id_Delete (ideal* h, ring r);
    5960void id_ShallowDelete (ideal* h, ring r);
    60   /*- initialise an ideal -*/
     61/*- initialise an ideal -*/ // ?
     62
     63/// initialise the maximal ideal (at 0)
    6164ideal idMaxIdeal (int deg);
    62   /*- initialise the maximal ideal (at 0) -*/
     65
     66/// gives an ideal the minimal possible size
    6367void idSkipZeroes (ideal ide);
    64 /* index of generator with leading term in ground ring (if any);
    65    otherwise -1 */
     68
     69/// index of generator with leading term in ground ring (if any); otherwise -1
    6670int idPosConstant (ideal id);
    67   /*gives an ideal the minimal possible size*/
     71
     72/// Count the effective size of an ideal
     73/// (without the trailing allocated zero-elements)
     74static inline int idSize(const ideal id)
     75{
     76  int j = IDELEMS(id) - 1;
     77  poly* mm = id->m;
     78  while ((j >= 0) && (mm[j] == NULL)) j--;
     79  return (j + 1);
     80};
     81
    6882void idNorm(ideal id);
    6983void idDelMultiples(ideal id);
     
    207221ideal id_TensorModuleMult(const int m, const ideal M, const ring rRing = currRing); // image of certain map for BGG
    208222
    209 #ifndef NDEBUG
     223#ifdef PDEBUG
    210224/* Shows an ideal -- only for debugging */
    211225void idShow(const ideal id, const ring lmRing = currRing, const ring tailRing = currRing, const int debugPrint = 0);
    212 #endif
    213 #endif
     226#else
     227#define idShow(id, lmRing, tailRing, debugPrint) ((void)0)
     228#endif
     229#endif
Note: See TracChangeset for help on using the changeset viewer.