repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
orbiter
orbiter-master/src/lib/layer1_foundations/knowledge_base/knowledge_base.h
/* * knowledge_base.h * * Created on: May 20, 2021 * Author: betten */ #ifndef SRC_LIB_FOUNDATIONS_KNOWLEDGE_BASE_KNOWLEDGE_BASE_H_ #define SRC_LIB_FOUNDATIONS_KNOWLEDGE_BASE_KNOWLEDGE_BASE_H_ namespace orbiter { namespace layer1_foundations { namespace knowledge_base { // ############################...
3,021
27.242991
83
h
orbiter
orbiter-master/src/lib/layer1_foundations/solvers/solvers.h
// solvers.h // // Anton Betten // // moved here from galois.h: July 27, 2018 // started as orbiter: October 23, 2002 // 2nd version started: December 7, 2003 // galois started: August 12, 2005 #ifndef ORBITER_SRC_LIB_FOUNDATIONS_SOLVERS_SOLVERS_H_ #define ORBITER_SRC_LIB_FOUNDATIONS_SOLVERS_SOLVERS_H_ namespace...
18,719
24.679012
93
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser/expression_parser.h
/* * parser.h * * Created on: Feb 14, 2021 * Author: betten */ #ifndef SRC_LIB_FOUNDATIONS_EXPRESSION_PARSER_EXPRESSION_PARSER_H_ #define SRC_LIB_FOUNDATIONS_EXPRESSION_PARSER_EXPRESSION_PARSER_H_ namespace orbiter { namespace layer1_foundations { namespace expression_parser { // ######################...
23,158
24.789532
126
h
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory/graph_theory.h
// graph_theory.h // // Anton Betten // // moved here from galois.h: July 27, 2018 // started as orbiter: October 23, 2002 // 2nd version started: December 7, 2003 // galois started: August 12, 2005 #ifndef ORBITER_SRC_LIB_FOUNDATIONS_GRAPH_THEORY_GRAPH_THEORY_H_ #define ORBITER_SRC_LIB_FOUNDATIONS_GRAPH_THEORY_GR...
24,679
26.002188
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory/Clique/KClique.h
/* * KClique.h * * Created on: Jun 16, 2020 * Author: sajeeb */ #include <iostream> #include "Graph.h" #include <thread> #include <vector> #include <algorithm> #include <iterator> #include <limits> #include <atomic> #include <string> #include <math.h> #ifndef SRC_LIB_FOUNDATIONS_GRAPH_THEORY_CLIQUE_KCLIQUE...
5,048
26.895028
104
h
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory/Clique/RainbowClique.h
/* * RainbowClique.h * * Created on: Aug 25, 2019 * Author: sajeeb */ #include "Graph.h" //#include "chrono.h" #include <thread> #include <vector> #include <algorithm> #include <iterator> #include <limits> #ifndef _RAINBOW_CLIQUE_ #define _RAINBOW_CLIQUE_ // #define COLLECT_RUNTIME_STATS #define COLLECT...
16,742
30.353933
132
h
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory_nauty/naurng.c
/* naurng.c * This is thread-safe version of rng.c if thread-local support * is available. * This file contains the code for a high-quality random number generator written by Don Knuth. The auxilliary routine ran_arr_cycle() has been modified slightly, and ran_init() is new. To use it: 0. #incl...
4,681
33.940299
77
c
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory_nauty/naurng.h
/* naurng.h : definitions for using Don Knuth's random number generator. This version uses the attribute TLS_ATTR from nauty.h. To use it: 1. Call ran_init(seed) with any long seed. (Optional, but you will always get the same sequence otherwise.) 2. Use NEXTRAN to get the next number (0..2^30-1)...
1,143
26.902439
72
h
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory_nauty/sorttemplates.c
/* sorttemplates.c version 2.0, Mar 13, 2018. * Author: Brendan McKay; brendan.mckay@anu.edu.au * * This file contains templates for creating in-place sorting procedures * for different data types. It cannot be compiled separately but * should be #included after defining a few preprocessor variables. * SORT_OF...
14,055
23.276339
75
c
orbiter
orbiter-master/src/lib/layer1_foundations/graph_theory_nauty/schreier.h
/* schreier.h - Version 1.2 (January 2013) */ #ifndef _SCHREIER_H_ /* only process this file once */ #define _SCHREIER_H_ #include "nauty.h" #include "naurng.h" typedef struct permnodestruct { struct permnodestruct *prev,*next; /* prev&next in circular list */ unsigned long refcount; /* n...
2,741
38.73913
75
h
orbiter
orbiter-master/src/lib/layer1_foundations/geometry_builder/geometry_builder.h
/* * geometry_builder.h * * Created on: Aug 24, 2021 * Author: betten */ #ifndef SRC_LIB_FOUNDATIONS_GEOMETRY_BUILDER_GEOMETRY_BUILDER_H_ #define SRC_LIB_FOUNDATIONS_GEOMETRY_BUILDER_GEOMETRY_BUILDER_H_ namespace orbiter { namespace layer1_foundations { namespace geometry_builder { #define COLOR_RED 2 #...
17,202
21.458225
81
h
orbiter
orbiter-master/src/lib/layer1_foundations/coding_theory/coding_theory.h
// coding_theory.h // // Anton Betten // // moved here from galois.h: July 27, 2018 // started as orbiter: October 23, 2002 // 2nd version started: December 7, 2003 // galois started: August 12, 2005 #ifndef ORBITER_SRC_LIB_FOUNDATIONS_CODING_THEORY_CODING_THEORY_H_ #define ORBITER_SRC_LIB_FOUNDATIONS_CODING_THEOR...
23,358
25.787844
83
h
orbiter
orbiter-master/src/lib/layer1_foundations/number_theory/number_theory.h
/* * number_theory.h * * Created on: Nov 2, 2021 * Author: betten */ #ifndef SRC_LIB_FOUNDATIONS_NUMBER_THEORY_NUMBER_THEORY_H_ #define SRC_LIB_FOUNDATIONS_NUMBER_THEORY_NUMBER_THEORY_H_ namespace orbiter { namespace layer1_foundations { namespace number_theory { // ###################################...
10,301
25.968586
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/l1_interfaces/EasyBMP_VariousBMPutilities.h
/************************************************* * * * EasyBMP Cross-Platform Windows Bitmap Library * * * * Author: Paul Macklin * * email: macklin01@users.sourceforge.net * * support: ht...
1,975
43.909091
85
h
orbiter
orbiter-master/src/lib/layer1_foundations/l1_interfaces/EasyBMP.h
/************************************************* * * * EasyBMP Cross-Platform Windows Bitmap Library * * * * Author: Paul Macklin * * email: macklin01@users.sourceforge.net * * support: ht...
2,418
26.804598
55
h
orbiter
orbiter-master/src/lib/layer1_foundations/l1_interfaces/EasyBMP_BMP.h
/************************************************* * * * EasyBMP Cross-Platform Windows Bitmap Library * * * * Author: Paul Macklin * * email: macklin01@users.sourceforge.net * * support: ht...
2,815
31.367816
68
h
orbiter
orbiter-master/src/lib/layer1_foundations/l1_interfaces/EasyBMP_DataStructures.h
/************************************************* * * * EasyBMP Cross-Platform Windows Bitmap Library * * * * Author: Paul Macklin * * email: macklin01@users.sourceforge.net * * support: ht...
2,708
24.8
60
h
orbiter
orbiter-master/src/lib/layer1_foundations/l1_interfaces/l1_interfaces.h
/* * l1_interfaces.h * * Created on: Mar 18, 2023 * Author: betten */ #ifndef SRC_LIB_LAYER1_FOUNDATIONS_L1_INTERFACES_L1_INTERFACES_H_ #define SRC_LIB_LAYER1_FOUNDATIONS_L1_INTERFACES_L1_INTERFACES_H_ namespace orbiter { namespace layer1_foundations { namespace l1_interfaces { // #################...
14,003
26.840954
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/IRTree/node.h
#include <list> #include <memory> #include <iostream> #include <vector> #include <string> #include <list> #include <variant> #include "node_forward_declaration.h" #ifndef IR_TREE_NODE #define IR_TREE_NODE using std::string; using std::list; using std::shared_ptr; using std::vector; #ifndef LOG #define LOG(x) std::...
3,853
23.547771
99
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/merge_nodes_visitor.h
#include "../IRTree/node_forward_declaration.h" #include "../IRTree/node.h" #include "IRTreeVisitor.h" #include <iostream> #include <memory.h> #ifndef MERGE_NODES_VISITOR #define MERGE_NODES_VISITOR using std::cout; using std::endl; using std::shared_ptr; using std::make_shared; class merge_nodes_visitor final : pub...
604
22.269231
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/IRTreeChildLinkArgumentVisitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/2/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include "IRTreeVisitor.h" #include "../IRTree/node_forward_declaration.h" #include <list> #include <memory> #ifndef IRTREECHILDLINKARGUMENTVISITOR_H #define IRTREECHILDLINKARGUMENTVISITOR_H using std::list; using...
1,974
41.934783
100
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/dispatcher.h
/** * Author: Sajeeb Roy Chowdhury * Created: 12.13.2022 * Email: sajeeb.roy.chow@gmail.com * **/ /** * @file * @brief */ #include "../IRTree/node.h" #include <memory> #ifndef _DISPATCHER_H_ #define _DISPATCHER_H_ using std::shared_ptr; struct dispatcher { template <typename node_t, typename vi...
2,555
40.901639
87
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/IRTreeVisitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/7/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include "../IRTree/node_forward_declaration.h" #include <memory.h> #include "dispatcher.h" #include <iostream> #ifndef IRTREETEMPLATERETURNVISITOR_H #define IRTREETEMPLATERETURNVISITOR_H #ifndef LOG #define LOG(...
5,790
40.364286
84
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/exponent_vector_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/8/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include <vector> #include <list> #include <unordered_map> #include <unordered_set> #include <string> #include <iostream> #include <memory> #include "IRTreeVisitor.h" #include "dispatcher.h" #include "../exception....
7,166
40.427746
124
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/uminus_distribute_and_reduce_visitor.h
#include "../IRTree/node_forward_declaration.h" #include "IRTreeVisitor.h" #include <iostream> #include <memory> #include <list> #ifndef UMINUS_DISTRIBUTE_AND_REDUCE_VISITOR #define UMINUS_DISTRIBUTE_AND_REDUCE_VISITOR using std::list; using std::cout; using std::endl; using std::shared_ptr; using std::make_shared; ...
1,822
48.27027
123
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/ir_tree_remove_minus_node_visitor.h
#include "../IRTree/node_forward_declaration.h" #include "../IRTree/node.h" #include "IRTreeVisitor.h" #include <iostream> #include <memory> #include <algorithm> #include <list> #ifndef IR_TREE_REMOVE_MINUS_NODE_VISITOR #define IR_TREE_REMOVE_MINUS_NODE_VISITOR using std::shared_ptr; using std::make_shared; using st...
952
24.756757
87
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/remove_minus_nodes_visitor.h
// // Created by Sajeeb Roy Chowdhury on 10/1/22. // #include "IRTreeChildLinkArgumentVisitor.h" #include "../IRTree/node.h" #include <memory> #ifndef REMOVE_MINUS_NODES_VISITOR_H #define REMOVE_MINUS_NODES_VISITOR_H class remove_minus_nodes_visitor : public IRTreeChildLinkArgumentVisitor { public: using IRTreeC...
528
24.190476
92
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/PrintVisitors/ir_tree_pretty_print_visitor.h
#include "../IRTreeVisitor.h" #include <string> #include <vector> #include <algorithm> #include <memory> #include <iostream> #ifndef IR_TREE_PRETTY_PRINT_VISITOR #define IR_TREE_PRETTY_PRINT_VISITOR using std::string; using std::cout; using std::endl; using std::vector; using std::shared_ptr; class ir_tree_pretty_pr...
1,066
25.675
82
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/ReductionVisitors/simplify_numerical_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/21/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include "simplify_visitor.h" #include "../dispatcher.h" #include <functional> #include "../../IRTree/node.h" #include <memory> #ifndef SIMPLIFY_NUMERICAL_VISITOR_H #define SIMPLIFY_NUMERICAL_VISITOR_H using ...
2,336
33.880597
128
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/LatexVisitors/ir_tree_latex_visitor_family_tree.h
// // Created by Sajeeb Roy Chowdhury on 9/29/22. // #include "ir_tree_latex_visitor.h" #include "../../IRTree/node_forward_declaration.h" #include "../../IRTree/node.h" #include "../IRTreeVisitor.h" #include <iostream> #include <memory.h> #ifndef IR_TREE_LATEX_VISITOR_FAMILY_TREE #define IR_TREE_LATEX_VISITOR_FAMILY...
1,159
30.351351
117
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/LatexVisitors/ir_tree_latex_visitor_strategy.h
// // Created by Sajeeb Roy Chowdhury on 9/29/22. // #include <unordered_map> #include <vector> #include "ir_tree_latex_visitor.h" #include "../IRTreeVisitor.h" #include "ir_tree_latex_visitor_family_tree.h" #include "ir_tree_latex_visitor_simple_tree.h" #include <memory> #ifndef IR_TREE_LATEX_VISITOR_STRATEGY #defin...
2,412
29.935897
105
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/LatexVisitors/ir_tree_latex_visitor_simple_tree.h
/** * Author: Sajeeb Roy Chowdhury * Created: 09.22.2022 * Email: sajeeb.roy.chow@gmail.com * **/ #include "ir_tree_latex_visitor.h" #include "../../IRTree/node_forward_declaration.h" #include "../../IRTree/node.h" #include "../IRTreeVisitor.h" #include <iostream> #include <memory.h> #ifndef IR_TREE_LATEX_VI...
1,325
29.837209
123
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/LatexVisitors/ir_tree_latex_visitor.h
// // Created by Sajeeb Roy Chowdhury on 9/30/22. // #include <iostream> #include <string> #ifndef GRAMMAR_TEST_IR_TREE_LATEX_VISITOR_H #define GRAMMAR_TEST_IR_TREE_LATEX_VISITOR_H class ir_tree_latex_visitor { protected: std::ostream* output_stream; std::string indentation; std::string delimiter = " ";...
908
20.139535
77
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/ToStringVisitors/ir_tree_to_string_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 09.26.2022 * Email: sajeeb.roy.chow@gmail.com * **/ #include "../../IRTree/node_forward_declaration.h" #include "../../IRTree/node.h" #include "../IRTreeVisitor.h" #include <iostream> #include <string> #include <memory.h> #ifndef IR_TREE_TO_STRING_VISITOR #define...
1,226
24.5625
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/EvaluateVisitors/eval_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/8/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include "../IRTreeVisitor.h" #include "../../../foundations.h" #include <unordered_map> #include <string> #ifndef EVAL_VISITOR_H #define EVAL_VISITOR_H #ifndef LOG #define LOG(x) std::cout << __FILE__ << ":" << _...
1,903
44.333333
121
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/ExpansionVisitors/multiplication_expansion_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10.04.2022 * Email: sajeeb.roy.chow@gmail.com * **/ #include "../IRTreeChildLinkArgumentVisitor.h" #include "../../exception.h" #include <iostream> #include <string> #ifndef MULTIPLICATION_EXPANSION_VISITOR #define MULTIPLICATION_EXPANSION_VISITOR class multipli...
700
23.172414
96
h
orbiter
orbiter-master/src/lib/layer1_foundations/expression_parser_sajeeb/Visitors/CopyVisitors/deep_copy_visitor.h
/** * Author: Sajeeb Roy Chowdhury * Created: 10/6/22 * Email: sajeeb.roy.chow@gmail.com * **/ #include "../IRTreeVisitor.h" #include <memory> #ifndef DEEP_COPY_VISITOR_H #define DEEP_COPY_VISITOR_H using std::shared_ptr; class deep_copy_visitor : public IRTreeTemplateReturnTypeConstantVisitorInterface<sha...
1,736
36.76087
120
h
orbiter
orbiter-master/src/lib/layer1_foundations/cryptography/cryptography.h
/* * cryptography.h * * Created on: Nov 4, 2020 * Author: betten */ #ifndef SRC_LIB_FOUNDATIONS_CRYPTOGRAPHY_CRYPTOGRAPHY_H_ #define SRC_LIB_FOUNDATIONS_CRYPTOGRAPHY_CRYPTOGRAPHY_H_ namespace orbiter { namespace layer1_foundations { namespace cryptography { // #########################################...
10,018
28.554572
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/errmesg.h
#ifndef ERRMESG #define ERRMESG extern BOOLEAN isValidName( char *name) /* The name to be checked for validity. */ ; extern void errorMessage( char *file, /* The file in which the error occured. */ int line, /* The line before which the error occured. */ char *f...
1,479
41.285714
76
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/readdes.c
/* File readdes.c. Contains routines to read and write block designs. */ #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "group.h" #include "groupio.h" #include "code.h" #include "field.h" #include "errmesg.h" #include "new.h" #include "token.h" CHECK( readde) extern GroupO...
18,360
34.861328
89
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/errmesg.c
/* File errmesg.c. Contains function errorMessage that is invoked when an error occurs. It prints a message and terminates the program. */ #include "group.h" #include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> CHECK( errmes) /*-------------------------- isValidName ------------------...
2,835
34.45
77
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/storage.c
/* File storage.c. Contains functions to allocate and free memory. For certain commonly used sizes, memory is never actually freed; rather a linked list of allocated but currently unused segments of those sizes are maintained, and new allocations are taken from these linked lists when possible. Prior to ...
19,603
26.114799
92
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/rprique.h
#ifndef RPRIQUE #define RPRIQUE extern void initFromPartnStack( RPriorityQueue *rpq, /* R-priority queue to initialize. */ PartitionStack *PiStack, /* The partition stack. */ Unsigned cellNumber, /* The R-priority queue is initialized to cell cellNumber of to...
632
29.142857
77
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/ptstbref.c
/* File ptstbref.c. Contains functions relating to refinements based on the point stabilizer property (the refinements SSS_{alpha,i} in the reference), as follows: pointStabRefine: A refinement family based on the point stabilizer property. isPointStabReducible: A...
8,787
41.25
83
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/addsgen.c
/* File addsgen.c. Contains function addStrongGenerator, which may be used to adjoin a new strong generator to a permutation group. */ #include <stddef.h> #include "group.h" #include "essentia.h" #include "permgrp.h" #include "permut.h" #include "cstborb.h" CHECK( addsge) /*-------------------------- addStrong...
2,037
32.966667
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/enum.h
#define HB 0x8000 #define NHB 0x7fff typedef struct { Word word; Unsigned *image; } WordImagePair; typedef struct { Unsigned pnt; Unsigned img; Permutation *gn; } Deduction; typedef struct { Unsigned curSize; Unsigned head; Unsigned tail; Deduction *deduc; } DeductionQueue; typedef struc...
1,428
22.048387
77
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/readpts.c
/* File readPts. Contains routines to read in and write out point sets. The files must already be open. */ #include <stddef.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include "group.h" #include "groupio.h" #include "storage.h" #include "token.h" #include "errmesg.h" CHECK( readpt) extern Gro...
4,214
27.47973
88
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/permgrp.h
#ifndef PERMGRP #define PERMGRP extern Unsigned genCount( const PermGroup *const G, /* The permutation group. */ Unsigned *involCount) /* If nonnull, set to number of involutory generators. */ ; extern BOOLEAN isFixedPointOf( const PermGroup *c...
2,856
23.843478
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/settoinv.h
/* Optimized macro to set one point list to the inverse of another. Two temporary variable of type Unsigned*, followed by three of type Unsigned, are required. The first three of the five temporary variables are good candidates for register variables. */ #define SET_TO_INVERSE( pointList, invPointList, list...
1,115
38.857143
75
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/code.c
/* File code.c. Contains miscellaneous functions for computations with binary codes. */ #include <stdlib.h> #include "group.h" #include "errmesg.h" #include "storage.h" CHECK( code) /*-------------------------- reduceBasis ----------------------------------*/ /* The function reduceBasis allocates an infoSet ...
4,694
30.510067
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/util.c
/* File util.h. Utility routines for use with partition backtrack algorithms. */ #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "group.h" CHECK( util) extern GroupOptions options; /*-------------------------- parseLibraryName ----------------------------*/ void parseL...
3,611
31.836364
78
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cparstab.c
/* File cparstab.c. Contains function partnStabilizer, the main function for a program that may be used to compute the stabilizer in a permutation group of an ordered partition. Also contains functions as follows: parStabRefnInitialize: Initialize set stabilizer refinement functions. setStabRefine...
11,663
37.368421
81
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/ccommut.c
/* File ccommut.c. Contains function commutatorGroup, which computes the commutator [G,H] of a group G and a (not necessarily normal) subgroup H. */ #include <stddef.h> #include "group.h" #include "addsgen.h" #include "copy.h" #include "chbase.h" #include "new.h" #include "permgrp.h" #include "permut.h" #incl...
3,069
30.326531
76
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/essentia.c
/* File essentia.c. Contains functions for testing and setting the essential[] field of permutations. */ #include <stddef.h> #include "group.h" extern GroupOptions options; CHECK( essent) BOOLEAN essentialAtLevel( const Permutation *const perm, const Unsigned level) { if ( level <= 31 ) return ...
2,371
20.563636
74
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cmatauto.h
#ifndef CMATAUTO #define CMATAUTO extern PermGroup *matrixAutoGroup( Matrix_01 *const M, /* The matrix whose group is to be found. */ PermGroup *const L, /* A (possibly trivial) known subgroup of the automorphism group of D. (A null pointer ...
1,300
47.185185
81
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cstborb.h
#ifndef CSTBORB #define CSTBORB extern Permutation *linkGensAtLevel( PermGroup *G, /* The permutation group. */ Unsigned level) /* Permutations at or above this level will be included. */ ; extern Permutation *linkEssentialGensAtLe...
1,381
31.139535
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/readdes.h
#ifndef READDES #define READDES extern Matrix_01 *readDesign( char *libFileName, char *libName, Unsigned requiredPointCount, /* 0 = any */ Unsigned requiredBlockCount) /* 0 = any */ ; extern void writeDesign( char *libFileName, char *libName, Matrix_01 *matrix, char *comment) ; ex...
1,270
22.981132
84
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/ptstbref.h
#ifndef PTSTBREF #define PTSTBREF extern SplitSize pointStabRefine( const RefinementParm familyParm[], /* No family parms. */ const RefinementParm refnParm[], /* parm[0] = alpha, parm[1] = i. */ PartitionStack *const UpsilonStack) /* The partition stack, as above. */ ; extern RefinementPr...
891
41.47619
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/readper.c
/* File readPer. Contains routines to read in and write out individual permutations. The files must already be open. */ #include <stddef.h> #include <stdio.h> #include <string.h> #include "group.h" #include "groupio.h" #include "errmesg.h" #include "essentia.h" #include "readgrp.h" #include "storage.h" #include...
4,968
26.605556
81
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cuprstab.h
#ifndef CUPRSTAB #define CUPRSTAB extern PermGroup *uPartnStabilizer( PermGroup *const G, /* The containing permutation group. */ const Partition *const Lambda, /* The point set to be stabilized. */ PermGroup *const L) /* A (possibly trivial) known subgroup of the ...
1,521
42.485714
81
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/inform.c
/* File inform.c. */ #include <stdio.h> #include <string.h> #include <time.h> #include "group.h" #include "groupio.h" #ifdef ALT_TIME_HEADER #include "cputime.h" #endif #ifdef TICK #undef CLK_TCK #define CLK_TCK TICK #endif #include "readgrp.h" CHECK( inform) extern GroupOptions options; void informStatistics( ...
8,669
28.691781
82
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/permut.c
/* File permut.c. Contains miscellaneous functions performing simple computations with permutations, as follows: isIdentity: Returns true if a permutation is the identity and false otherwise. Requires on the degree and image fields of the permutation to ...
11,960
29.906977
84
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/chbase.c
/* File chbase.c. Contains functions performing base changes in permutation groups, as follows: insertBasePoint: Insert a new point at specified level into the base for a permutation group. changeBase: Change the base for a permutation group. */ #include <stddef.h> ...
22,750
39.482206
81
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cstborb.c
/* File cstborb.c. Contains functions to construct and extend basic orbits in permutation groups, as follows: constructBasicOrbit: Constructs the basic orbit and (incomplete) Schreier vector at a given level in a permutation group. extendBasi...
13,947
34.672634
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/field.c
/* File field.c. Contains miscellaneous functions for computations with fields. At present, only field whose order is a prime number or 4 are implemented. */ #include <stdlib.h> #include "group.h" #include "errmesg.h" #include "new.h" #include "primes.h" #include "storage.h" CHECK( field) /*--------------...
2,689
26.171717
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/orbrefn.h
#ifndef ORBREFN #define ORBREFN extern void initializeOrbRefine( PermGroup *G) ; extern SplitSize orbRefine( const RefinementParm familyParm[], const RefinementParm refnParm[], PartitionStack *const UpsilonStack) ; extern RefinementPriorityPair isOrbReducible( const RefinementFamily *family, /* Th...
544
24.952381
78
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/readgrp.h
#ifndef READGRP #define READGRP extern FactoredInt readFactoredInt(void) ; extern void writeFactoredInt( FactoredInt *fInt) ; extern TokenType readCyclePerm( Permutation *perm) ; extern TokenType readImagePerm( Permutation *perm) ; extern Permutation *readPerm( const Unsigned degree, /* Degree o...
2,384
29.189873
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/matrix.c
/* File matrix.c. Contains miscellaneous functions for computations with (0,1) matrices. */ #include <stdlib.h> #include <string.h> #include "group.h" #include "errmesg.h" #include "new.h" #include "storage.h" CHECK( matrix) /*-------------------------- isMatrix01Isomorphism ------------------------*/ ...
3,182
32.505263
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/repinimg.h
/* Optimized macro to apply the inverse of a permutation perm to a list pointList of points of size listSize. (It is assumed that the inverse image fields exist.) Four temporary variables of type Unsigned* must be supplied: tImage, ptPtr, breakPtr, and endList. The first two (especially the second) are ...
1,203
33.4
78
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/orbit.c
/* File orbit.c. Contains miscellaneous functions for orbit computations. */ #include "group.h" #include "cstborb.h" CHECK( orbit) /* Bug fix for Waterloo C (IBM 370). */ #if defined(IBM_CMS_WATERLOOC) && !defined(SIGNED) && !defined(EXTRA_LARGE) #define FIXUP1 short #define FIXUP2 (short) #else #define FIXUP1 Uns...
1,684
27.083333
77
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/stcs.h
#ifndef STCS #define STCS extern WordImagePair computeSchreierGen( const PermGroup *const G, const Unsigned level, const Unsigned point, const Permutation *const gen); BOOLEAN reduce( const PermGroup *const G, const Unsigned level, Unsigned *const jPtr, WordImagePair *const whPtr); void infor...
2,407
22.378641
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/primes.c
/* File primes.c. Contains a null-terminated array of primes up to 256. */ #include "group.h" #include "errmesg.h" CHECK( primes) Unsigned primeList[] = {2,3,5,7,9,11,13,17,19,23,29,31,37,41,43,47,53,59, 61,67,71,73,79,83,89,97,101,103,107,109,113,127, 131, 137,1...
1,143
28.333333
86
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/rprique.c
/* File rprique.c Contains functions to manipulate an R-priority queue. An R-priority queue is a priority queue that, after initialization, permits only removal operations. The functions provided are: initFromPartnStack: Initialize an R-priority queue to contain the points i...
6,403
33.616216
78
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/compsg.c
/* File compsg.c. */ /* Copyright (C) 1992 by Jeffrey S. Leon. This software may be used freely for educational and research purposes. Any other use requires permission from the author. */ /* Contains function computeSubgroup, which may be used to compute the subgroup G_pP a specified group G (with known b...
23,615
38.099338
103
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cinter.c
/* File cinter.c. Contains function intersection, the main function for a program that may be used to compute the intersection of two permutation groups. */ #include <stddef.h> #include <stdlib.h> #include "group.h" #include "compcrep.h" #include "compsg.h" #include "errmesg.h" #include "orbrefn.h" CHECK( ci...
2,275
27.810127
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/compcrep.h
#ifndef COMPCREP #define COMPCREP extern Permutation *computeCosetRep( PermGroup *const G, /* The permutation group, as above. A base/sgs must be known (unless name is "symmetric"). */ Property *const pP, /* The subgroup-type property, as above. A value ...
1,340
50.576923
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/csetstab.c
/* File csetstab.c. Contains function setStabilizer, the main function for a program that may be used to compute the stabilizer in a permutation group of a subset of the set of points. Also contains functions as follows: setStabRefnInitialize: Initialize set stabilizer refinement functions. setSta...
11,590
36.879085
84
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/repimg.h
/* Optimized macro to apply a permutation perm to a list pointList of points of size listSize. Four temporary variables of type Unsigned* must be supplied: tImage, ptPtr, breakPtr, and endList. The first two (especially the second) are good candidates for register variables. */ #define REPLACE_BY_IMAGE( p...
1,120
31.970588
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/copy.c
/* File copy.c. Contains functions to create copies of objects. Each function allocates storage for a new object, which is totally disjoint from the object being copies (i.e., the existing object and the new copy do not contain direct or indirect pointers to common objects, and it returns a pointer to the...
5,565
31.741176
79
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cputime.c
/* File cputime.c. Contain Unix function cpuTime returning the CPU time in milliseconds (user+system) used by the current program. Works at least on Sun/3 and Sun/4. */ #include <time.h> #include <sys/time.h> #include <sys/resource.h> #ifndef TICK #error TICK must be defined. #endif #if TICK != 1000 #er...
698
22.3
68
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/csetstab.h
#ifndef CSETSTAB #define CSETSTAB extern PermGroup *setStabilizer( PermGroup *const G, /* The containing permutation group. */ const PointSet *const Lambda, /* The point set to be stabilized. */ PermGroup *const L) /* A (possibly trivial) known subgroup of the ...
1,141
44.68
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/randgrp.c
/* File randgrp.c. Contains functions generating random numbers and random group elements, as follows: initializeSeed: Initializes the seed for the random number generator. randInteger: Returns a pseudo-random integer in a specified range. randGroupWord: Returns a pseudo-random group ...
3,905
32.101695
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/partn.h
#ifndef PARTN #define PARTN extern void popToHeight( PartitionStack *piStack, /* The partition stack to pop. */ Unsigned newHeight) /* The new height for the stack. */ ; extern void xPopToLevel( CellPartitionStack *xPiStack, /* The cell partition stack to pop. */ UnsignedS *applyAfterLevel,...
1,054
29.142857
78
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/factor.c
/* File factor.c. */ #include "group.h" #include "errmesg.h" CHECK( factor) extern Unsigned primeList[]; /*-------------------------- gcd ------------------------------------------*/ /* The function gcd( a, b) returns the greatest common divisor of log integers a and b. */ unsigned long gcd( unsigned long ...
4,870
29.63522
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/swt.h
#undef WEIGHT #undef ADD #if MAXLEN == 32 #define WEIGHT onesCount[cw1 & 0x0000ffff] + onesCount[cw1 >> 16] #define ADD(i) cw1 ^= basis1[i]; #elif MAXLEN == 48 #define WEIGHT onesCount[cw1 & 0x0000ffff] + onesCount[cw1 >> 16] + \ onesCount[cw2 & 0x0000ffff] #define ADD(i) c...
2,849
38.041096
84
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/group.h
#ifndef GROUP #define GROUP /* File group.h. File to be included with all permutation group theoretic functions. Defines constants and types relating to permutation groups. Also defines some convenient macros. Certain preprocessor symbols must, or may, be defined on the compilation command line. Of ...
17,637
32.59619
86
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/optsvec.c
/* File optsvec.c. */ #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include "group.h" #include "cstborb.h" #include "essentia.h" #include "new.h" #include "permut.h" #include "permgrp.h" #include "storage.h" CHECK( optsve) extern GroupOptions options; /* Bug fix for Waterloo C (IBM 370). */ #if defi...
10,458
31.993691
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/partn.c
/* File partn.h. Contains miscellaneous short functions for computing with partitions associated with permutation groups: constructOrbitPartition: This function constructs the partition of the set of points corresponding to the orbits of the s...
6,066
36.91875
78
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/permgrp.c
/* File permgrp.c. Contains miscellaneous short functions for computing with permutation groups, as follows: isNontrivialGroup: Returns true if a permutation group has order at least 2. A base/sgs are not needed. levelIn: Returns the level of a permutation relative ...
23,076
32.689051
84
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/chbase.h
#ifndef CHBASE #define CHBASE extern void insertBasePoint( PermGroup *G, /* The permutation group (base and sgs known). */ Unsigned newLevel, /* If newLevel = i and newBasePoint = b, the */ Unsigned newBasePoint) /* base for G is changed from (b[1],..., */ /*...
1,023
32.032258
79
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/token.c
/* File token.c. */ #define COMMENT_CHAR '\"' #define ALT_COMMENT_CHAR '&' #include <stdio.h> #include <string.h> #include <ctype.h> #include "group.h" #include "groupio.h" #include "errmesg.h" CHECK( token) static FILE *inFile; /* File to read from. */ static Unsigned lineNo; /* Line nu...
9,140
28.392283
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cdesauto.h
#ifndef CDESAUTO #define CDESAUTO extern PermGroup *designAutoGroup( Matrix_01 *const D, /* The matrix whose group is to be found. */ PermGroup *const L, /* A (possibly trivial) known subgroup of the automorphism group of D. (A null pointer ...
1,253
45.444444
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/compcrep.c
/* File compcrep.c. */ /* Copyright (C) 1992 by Jeffrey S. Leon. This software may be used freely for educational and research purposes. Any other use requires permission from the author. */ /* Contains function computeCosetRep, which may be used to solve coset-type problems. */ #include <stddef.h> #incl...
19,373
37.748
103
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/wt.h
#undef WEIGHT #undef ADD #if MAXLEN == 32 #define WEIGHT onesCount[cw1 & 0x0000ffff] + onesCount[cw1 >> 16] #define ADD(i) cw1 ^= basis1[i]; #elif MAXLEN == 48 #define WEIGHT onesCount[cw1 & 0x0000ffff] + onesCount[cw1 >> 16] + \ onesCount[cw2 & 0x0000ffff] #define ADD(i) c...
2,689
40.384615
84
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/new.c
/* File new.c. Contains functions to create new objects and delete objects so created. Actual allocation of memory is handled by invoking functions from storage.c. The functions included here are: */ #include <stddef.h> #include <stdlib.h> #include "group.h" #i...
14,783
30.322034
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cstrbas.c
/* File cstrbas.c. Contains function constructRBase, which may be used to construct an RRR-base. Also contains function getOptimInfo, which may invoked during RRR-base construction by functions that check RRR-reducbility. */ #include <stddef.h> #include <stdlib.h> #include <time.h> #include "group.h" /* B...
8,838
35.829167
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/oldcopy.c
/* File oldcopy.c. Contains functions that copy an object to an already- existing object of the same type. */ #include <stddef.h> #include <string.h> #include "group.h" #include "storage.h" CHECK( oldcop) /*-------------------------- copyPermutation ------------------------------*/ /* This function copies one...
1,494
30.145833
80
c
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/compsg.h
#ifndef COMPSG #define COMPSG extern PermGroup *computeSubgroup( PermGroup *const G, /* The permutation group, as above. A base/sgs must be known (unless name is "symmetric"). */ Property *const pP, /* The subgroup-type property, as above. A value ...
1,282
48.346154
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/permut.h
#ifndef PERMUT #define PERMUT extern BOOLEAN isIdentity( const Permutation *const s) ; extern BOOLEAN isInvolution( const Permutation *const s) ; extern Unsigned pointMovedBy( const Permutation *const perm) ; extern void adjoinInvImage( Permutation *s) /* The permutation group (base and sgs known...
1,436
21.107692
80
h
orbiter
orbiter-master/src/lib/layer1_foundations/Jeffrey_Leon_partition_backtrack/cparstab.h
#ifndef CPARSTAB #define CPARSTAB extern PermGroup *partnStabilizer( PermGroup *const G, /* The containing permutation group. */ const Partition *const Lambda, /* The point set to be stabilized. */ PermGroup *const L) /* A (possibly trivial) known subgroup of the ...
1,589
39.769231
81
h