Changeset d52c12 in git


Ignore:
Timestamp:
Jun 17, 2010, 4:31:20 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
44651b7a294639985e8e521f09f763d3bb0a4abf
Parents:
19b3c75184f32c67c2f6f1898582a25004784935
Message:
more factory sysntax fixes

git-svn-id: file:///usr/local/Singular/svn/trunk@12882 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • factory/DegreePattern.cc

    r19b3c7 rd52c12  
    2020#include "gfops.h"
    2121
    22 inline
     22
    2323DegreePattern::DegreePattern (const CFList& l)
    2424{
     
    6060
    6161
    62 inline int
    63 DegreePattern::find (const int x) const
    64 {
    65   if (getLength() == 0) return 0;
    66   for (int i= 0; i < getLength(); i++)
    67     if ((*this)[i] == x) return i + 1;
    68   return 0;
    69 }
    70 
    71 inline void
    72 DegreePattern::intersect (const DegreePattern& degPat)
     62void DegreePattern::intersect (const DegreePattern& degPat)
    7363{
    7464  if (degPat.getLength() < getLength())
     
    10797}
    10898   
    109 inline void
    110 DegreePattern::refine ()
     99void DegreePattern::refine ()
    111100{
    112101  if (getLength() <= 1)
  • factory/DegreePattern.h

    r19b3c7 rd52c12  
    159159  /// @return @a find returns the index + 1 of @a x, if @a x is an element of
    160160  ///         the degree pattern, 0 otherwise
    161   inline int find (const int x ///< [in] some int
    162            ) const;
     161  int find (const int x ///< [in] some int
     162           ) const
     163  {
     164    if (getLength() == 0) return 0;
     165    for (int i= 0; i < getLength(); i++)
     166      if ((*this)[i] == x) return i + 1;
     167    return 0;
     168  };
    163169 
    164170  /// intersect two degree patterns
    165   inline void intersect (const DegreePattern& degPat ///< [in] some degree pattern
     171  void intersect (const DegreePattern& degPat ///< [in] some degree pattern
    166172                 );
    167173  /// Refine a degree pattern. Assumes that (*this)[0]:= @a d is the degree
     
    169175  /// some entry @a b such that @a a+b= d. Elements which do not satisfy this
    170176  /// relation are removed.
    171   inline void refine ();
     177  void refine ();
    172178};
    173179
  • factory/facFqFactorizeUtil.cc

    r19b3c7 rd52c12  
    1717#include "canonicalform.h"
    1818#include "cf_map.h"
    19 
    20 static inline
    21 void decompressAppend (CFList& factors1, const CFList& factors2, const CFMap& N)
    22 {
    23   for (CFListIterator i= factors1; i.hasItem(); i++)
    24     i.getItem()= N (i.getItem());
    25   for (CFListIterator i= factors2; i.hasItem(); i++)
    26     factors1.append (N (i.getItem()));
    27   return;
    28 }
    2919
    3020static inline
     
    5343}
    5444
    55 static inline
     45
    5646void swap (CFList& factors, const int swapLevel1, const int swapLevel2, const
    5747           Variable& x)
     
    7666}
    7767
    78 static inline
    7968void appendSwapDecompress (CFList& factors1, const CFList& factors2,
    8069                             const CFMap& N, const int swapLevel, const
     
    9584}
    9685
    97 static inline
    9886void appendSwapDecompress (CFList& factors1, const CFList& factors2,
    9987                             const CFMap& N, const int swapLevel1,
     
    127115}
    128116
    129 static inline
    130117int* liftingBounds (const CanonicalForm& A, const int& bivarLiftBound)
    131118{
     
    141128}
    142129
    143 static inline
    144 CanonicalForm
    145 shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation)
     130CanonicalForm shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation)
    146131{
    147132  CanonicalForm A= F;
     
    160145}
    161146
    162 static inline
    163147CanonicalForm reverseShift (const CanonicalForm& F, const CFList& evaluation)
    164148{
  • factory/facFqFactorizeUtil.h

    r19b3c7 rd52c12  
    2323/// append @a factors2 to @a factors1 and decompress
    2424///
     25static inline
    2526void decompressAppend (CFList& factors1,       ///< [in,out] a list of polys,
    2627                                               ///< returns @a factors2 appended
     
    2930                       const CFList& factors2, ///< [in] a list of polys
    3031                       const CFMap& N          ///< [in] a map
    31                       );
     32                      )
     33{
     34  for (CFListIterator i= factors1; i.hasItem(); i++)
     35    i.getItem()= N (i.getItem());
     36  for (CFListIterator i= factors2; i.hasItem(); i++)
     37    factors1.append (N (i.getItem()));
     38}
     39
    3240
    3341/// swap elements in @a factors2 and append them to @a factors1
Note: See TracChangeset for help on using the changeset viewer.