Skip to content

Commit

Permalink
add tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebei committed Jul 12, 2023
1 parent 507c90d commit 1327265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/include/forbidden_permutation.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class ForbiddenPermutation

TLS init_tls();
TLS init_tls_by_scheme(const std::function<Laws(Tuple)>& scheme_fun);
TLS assign_laws(TLS tls, const Tuple& tuple, const Laws laws);
TLS assign_laws_by_index(TLS tls, Int32 index, const Laws laws);
TLS assign_laws(TLS tls, const Tuple& tuple, const Laws& laws);
TLS assign_laws_by_index(TLS tls, Int32 index, const Laws& laws);

bool check_permutation(const IntList& permutation, const TLS& tls);
void expand_permutation(IntList& permutation, const TLS& tls, Int8 alternative, std::size_t& domain_size);
Expand Down
4 changes: 2 additions & 2 deletions core/src/forbidden_permutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ TLS ForbiddenPermutation::init_tls_by_scheme(const std::function<Laws(Tuple)>& s
return tls;
}

TLS ForbiddenPermutation::assign_laws(TLS tls, const Tuple& tuple, const Laws laws)
TLS ForbiddenPermutation::assign_laws(TLS tls, const Tuple& tuple, const Laws& laws)
{
Int32 index = m_tuple_index[tuple];
tls[index].laws = laws;
return tls;
}

TLS ForbiddenPermutation::assign_laws_by_index(TLS tls, Int32 index, const Laws laws)
TLS ForbiddenPermutation::assign_laws_by_index(TLS tls, Int32 index, const Laws& laws)
{
tls[index].laws = laws;
return tls;
Expand Down

0 comments on commit 1327265

Please sign in to comment.