Skip to content

Commit

Permalink
Update for bmat8-hpp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Apr 26, 2024
1 parent 7bcdefb commit a9aabb3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/bipart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
#include "compiled.h"

// libsemigroups headers
#include "libsemigroups/bipart.hpp" // for Blocks, Bipartition, validate
#include "libsemigroups/bipart.hpp" // for Blocks, Bipartition, validate
#include "libsemigroups/detail/report.hpp" // for Reporter, etc
#include "libsemigroups/detail/timer.hpp" // for Timer
#include "semigroups-config.hpp" // for SEMIGROUPS_KERNEL_DEBUG
#include "semigroups-config.hpp" // for SEMIGROUPS_KERNEL_DEBUG

#include "gapbind14/gapbind14.hpp" // for GAPBIND14_TRY

Expand Down Expand Up @@ -1400,8 +1400,8 @@ class IdempotentCounter {
std::vector<size_t> count() {
libsemigroups::detail::reset_thread_ids();
libsemigroups::report_default("using {} / {} additional threads",
_nr_threads,
std::thread::hardware_concurrency());
_nr_threads,
std::thread::hardware_concurrency());
Timer timer;

for (size_t i = 0; i < _nr_threads; i++) {
Expand All @@ -1413,7 +1413,7 @@ class IdempotentCounter {
_threads[i].join();
}

libsemigroups::report_elapsed_time("", timer);
libsemigroups::report_elapsed_time("", timer);

size_t max = *max_element(_ranks.begin(), _ranks.end()) + 1;
std::vector<size_t> out = std::vector<size_t>(max, 0);
Expand Down Expand Up @@ -1449,7 +1449,7 @@ class IdempotentCounter {
}
}
}
libsemigroups::report_default("finished in {}", timer);
libsemigroups::report_default("finished in {}", timer);
}

// This is basically the same as BLOCKS_E_TESTER, but is required because we
Expand Down
8 changes: 4 additions & 4 deletions src/conglatt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
#include "semigroups-debug.hpp" // for SEMIGROUPS_ASSERT

// libsemigroups headers
#include "libsemigroups/adapters.hpp" // for Hash
#include "libsemigroups/detail/report.hpp" // for should_report
#include "libsemigroups/detail/string.hpp" // for group_digits
//
#include "libsemigroups/adapters.hpp" // for Hash
#include "libsemigroups/detail/report.hpp" // for should_report
#include "libsemigroups/detail/string.hpp" // for group_digits
//

namespace semigroups {
namespace {
Expand Down
6 changes: 4 additions & 2 deletions src/pkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,10 @@ static StructGVarFilt GVarFilts[] = {

typedef Obj (*GVarFunc)(/*arguments*/);

#define GVAR_ENTRY(srcfile, name, nparam, params) \
{ #name, nparam, params, (GVarFunc) name, srcfile ":Func" #name }
#define GVAR_ENTRY(srcfile, name, nparam, params) \
{ \
#name, nparam, params, (GVarFunc) name, srcfile ":Func" #name \
}

// Table of functions to export

Expand Down
2 changes: 1 addition & 1 deletion src/to_cpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace gapbind14 {
}
for (size_t j = 0; j < m; j++) {
if (ELM_BLIST(row, j + 1) == True) {
x.set(i, j, 1);
x(i, j) = 1;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/to_gap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace gapbind14 {
Obj blist = NewBag(T_BLIST, SIZE_PLEN_BLIST(n));
SET_LEN_BLIST(blist, n);
for (size_t j = 0; j < n; j++) {
if (x.first.get(i, j)) {
if (x.first(i, j)) {
SET_BIT_BLIST(blist, j + 1);
}
}
Expand Down

0 comments on commit a9aabb3

Please sign in to comment.