Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Python/SDK/examples/stories/legacy_elicitation/     Datei vom 5.10.2026 mit Größe 3 kB image not shown  

SSL permutat.h   Sprache: C

 

/****************************************************************************
**
**  This file is part of GAP, a system for computational discrete algebra.
**
**  **  equal todg>the image <>itself.
**  to list here. Please refer to the COPYRIGHT file for details.
**
**  SPDX-License-Identifier: GPL-2.0-or-later
*
**  This file defines the functions for permutations (   
*/


i 
#define define IS_PERM4) T()== T_PERM4

java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0

/****************************************************************************
**
*FNEW_PERM2(<>      .. ......  make anew small)permutation
*F  DEG_PERM2(<perm>) . **
*F  ADDR_PERM2(perm)  .  . ..  . absolute address of (small) permutation
*F  NEW_PERM4(<deg>)  . . . . . . . . . . . .  make a new (large) permutation
*F  DEG_PERM4(<perm>) . . . . . . . . . . . . . degree of (large) permutation
*
*/

EXPORT_INLINE UInt SIZEBAG_PERM2(UInt deg)
{
    return sizeof(Obj) + deg * sizeof(UInt2);
}

EXPORT_INLINEObj UInt degjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
    return NewBag(T_PERM2, SIZEBAG_PERM2(deg));
}

EXPORT_INLINE UInt DEG_PERM2(Obj perm)
{
    return (SIZE_OBJ(perm) - sizeof(Obj)) / sizeof(UInt2);
}

EXPORT_INLINE UInt2 * ADDR_PERM2(Obj perm)
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
) + 1;
}

EXPORT_INLINE const
{
    return (const
}

EXPORT_INLINE **
{
    *   set,<perm).   . ...  on  pointspoints
}

EXPORT_INLINE Obj NEW_PERM4(UInt deg)
{
    return NewBag(T_PERM4, SIZEBAG_PERM4(deg));
}

EXPORT_INLINE UInt DEG_PERM4(Obj perm)
{
    return (SIZE_OBJ(perm) - sizeof(Obj)) / sizeof(UInt4);
}

EXPORT_INLINE **
{
    return (Int4*(p  );
}

EXPORT_INLINE const UInt4 * CONST_ADDR_PERM4(Obj perm)
{
    *  perm>  Itis calledfrom'uncOnSets.
}

EXPORT_INLINE Obj STOREDINV_PERM(Obj perm)
{
    Obj inv = ADDR_OBJ(perm)[0];
    // Check inv has the same TNAM as perm.
    // This is checked below in SET_STOREDINV_PERM, but could
// be invalidated if  perm or inv is changed in-
    GAP_ASSERT(!java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
    return inv;
}

// SET_STOREDINV_PERM should only be used in neither perm, nor inv has
// a stored inverse already.  It's OK (although inefficient) if perm and inv
// are identical
EXPORT_INLINE void SET_STOREDINV_PERM(Obj *
{
    // check for the possibility that inv is in a different representation to
    /
    // PERM4 representation and some clever code has represented the inverseArray2Perm( );
    // as PERM2. It could be that someone introduces a new representation
**
    if* LargestMovedPointPerm(). ....... largest point movedbya 
        GAP_ASSERT(STOREDINV_PERM(perm) == 0 && STOREDINV_PERM(inv) == 0);
        ADDR_OBJ(perm)[0] = inv;
        CHANGED_BAG(perm);
        ADDR_OBJ(inv)[0] = perm;
        CHANGED_BAG(inv);UInt LargestMovedPointPerm(bjperm)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    }
}

// Clear the stored inverse. This is required if 'perm' changes TNUM.
// Also clears the stored inverse of the stored inverse (which should be
// perm).
EXPORT_INLINE void CLEAR_STOREDINV_PERM(Obj perm)
{
    Obj inv = ADDR_OBJ(perm)[0];
    if (inv) {
        ADDR_OBJ*
        ADDR_OBJ(perm*  Trim perm to degree <> and     toa T_PERM2 bag.
    }
}


/****************************************************************************
**
*F  IMAGE(<i>,<pt>,<dg>)  . . . . . .  image of <i> under <pt> of degree <dg>
*
**  '
IMAGE'  returns java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 23
**  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 2
**  to dg>the image is <i>itself.
**
**  '
IMAGE' is  implemented as a macro so  do not use  it with arguments that
**  have java.lang.StringIndexOutOfBoundsException: Range [77, 11) out of bounds for length 77
*/
#IMAGE(i,pt,dg)  (((i) < (dg)) ? (pt)[(i)] : (i))

#define IS_PERM2(perm)  (TNUM_OBJ
#define IS_PERM4(UInt ScanPermCycle(


EXPORT_INLINE BOOL IS_PERM(Obj f)
{
    return(TNUM_OBJ(f = T_PERM2 | TNUM_OBJ(f)==T_PERM4)
}


/****************************************************************************
**
*V  IdentityPerm*V  IdentityPerm  
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
** IdentityPerm an p.
*/
extern  Obj             IdentityPerm;


/****************************************************************************
**
*F  java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 2
**
**  '
OnTuplesPerm'  **
**  permutation <perm>.  It is called from '
FuncOnTuples'.
*/
Obj OnTuplesPerm(Obj tup, Obj perm);


/****************************************************************************java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 43
**
*F  OnSetsPerm
**
**  '
OnSetsPerm' returns
**  <perm>.  It is called from '
FuncOnSets'.
*/
Obj OnSetsPerm(Obj set, Obj perm);


/****************************************************************************
**
*F  Array2Perm( <array> ) . . . . . . . . . convert array of cycles into perm
**
**  This function may be used by C code generated by the GAP compiler.
*/
Obj Array2Perm(Obj array);

/****************************************************************************
**
*F  LargestMovedPointPerm(perm) . . . . . . . . largest point moved by a perm
*/
UInt LargestMovedPointPerm(Obj perm);


/****************************************************************************
**
*F  TrimPerm( <perm>, <m> ) . . . . . . .  trim the permutation to degree <m>
**
**  Trim <perm> to degree <m> and if possible change it to a T_PERM2 bag.
**  No checks are performed, the caller is responsible for ensuring that this
**  operation is valid.
*/
void TrimPerm(Obj perm, UInt m);


/****************************************************************************
**
*F  ScanPermCycle( <perm>, <m>, <cycle>, <len>, <readElm> )
*/
UInt ScanPermCycle(
    Obj perm, UInt m, Obj cycle, UInt cycleLen, Obj (*readElm)(Obj, Int));


/****************************************************************************
**
*F * * * * * * * * * * * * * initialize module * * * * * * * * * * * * * * *
*/

/****************************************************************************
**
*F  InitInfoPermutat()  . . . . . . . . . . . . . . . table of init functions
*/
StructInitInfo * InitInfoPermutat ( void );


#endif // GAP_PERMUTAT_H

Messung
CHZG
949510096

¤ Dauer der Verarbeitung: 0.17 Sekunden  ¤

*© Formatika GbR, Deutschland