loops/gap/convert.gd

21 lines
981 B
GDScript3
Raw Normal View History

2017-10-16 19:43:09 +00:00
############################################################################
##
#W convert.gd Converting between numerical bases [loops]
##
#H @(#)$Id: convert.gd, v 3.3.0 2016/10/19 gap Exp $
##
#Y Copyright (C) 2004, G. P. Nagy (University of Szeged, Hungary),
#Y P. Vojtechovsky (University of Denver, USA)
##
# auxiliary
DeclareOperation( "LOOPS_DigitToChar", [ IsInt ] );
DeclareOperation( "LOOPS_CharToDigit", [ IsChar ] );
DeclareOperation( "LOOPS_EncodeCayleyTable", [ IsList ] );
DeclareOperation( "LOOPS_DecodeCayleyTable", [ IsString ] );
DeclareOperation( "LOOPS_ConvertToDecimal", [ IsString, IsInt ] );
DeclareGlobalFunction( "LOOPS_ConvertFromDecimal" ); # has variable number of arguments
DeclareGlobalFunction( "LOOPS_ConvertBase" ); # has variable number of arguments
DeclareOperation( "LOOPS_EncodeCocycle", [ IsList, IsList ] );
DeclareOperation( "LOOPS_DecodeCocycle", [ IsList, IsList ] );