Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group-connectivity-pub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
group-connectivity-pub
Commits
9e5925c9
Commit
9e5925c9
authored
9 years ago
by
Radek Hušek
Committed by
Radek Hušek
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Silence compiler warnings
parent
587e51d5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
group-connectivity.h
+1
-1
1 addition, 1 deletion
group-connectivity.h
setup.py
+4
-1
4 additions, 1 deletion
setup.py
twoCuts.h
+4
-5
4 additions, 5 deletions
twoCuts.h
with
9 additions
and
7 deletions
group-connectivity.h
+
1
−
1
View file @
9e5925c9
...
...
@@ -47,7 +47,7 @@ struct Tester : public AbstractTester {
# if !USE_NEXT_FORB
size_t
numForb
;
# endif
in
t
edges
;
size_
t
edges
;
std
::
vector
<
EdgeId
>
classEdges
;
std
::
vector
<
std
::
pair
<
EdgeId
,
Mapping
>
>
nonClassEdges
;
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
4
−
1
View file @
9e5925c9
...
...
@@ -9,7 +9,10 @@ setup(
Extension
(
"
groupConnectivity
"
,
sources
=
[
"
groupConnectivity.pyx
"
],
language
=
"
c++
"
,
extra_compile_args
=
[
"
-std=gnu++11
"
,
"
-O2
"
,
"
-funroll-loops
"
]
extra_compile_args
=
[
"
-std=gnu++11
"
,
"
-O2
"
,
"
-funroll-loops
"
,
"
-fwrapv
"
,
"
-Wall
"
,
"
-fno-strict-aliasing
"
]
)
])
)
...
...
This diff is collapsed.
Click to expand it.
twoCuts.h
+
4
−
5
View file @
9e5925c9
...
...
@@ -9,9 +9,9 @@ struct TwoCutInt {
static
const
int
num_classes
=
(
Ring
::
size
*
(
Ring
::
size
-
1
))
/
2
;
struct
Tables
{
char
decodeMatrix
[
Ring
::
size
][
Ring
::
size
];
struct
{
char
a
,
b
;
}
encodeTable
[
max_value
];
char
classMatrix
[
Ring
::
size
][
Ring
::
size
];
signed
char
decodeMatrix
[
Ring
::
size
][
Ring
::
size
];
struct
{
signed
char
a
,
b
;
}
encodeTable
[
max_value
];
signed
char
classMatrix
[
Ring
::
size
][
Ring
::
size
];
Tables
()
{
encodeTable
[
0
]
=
{
1
,
2
};
...
...
@@ -30,7 +30,7 @@ struct TwoCutInt {
memset
(
classMatrix
,
-
1
,
sizeof
(
classMatrix
));
struct
{
char
a
,
b
;
}
classTable
[
num_classes
];
struct
{
signed
char
a
,
b
;
}
classTable
[
num_classes
];
classTable
[
0
]
=
{
0
,
1
};
for
(
int
i
=
1
;
i
<
num_classes
;
i
++
)
{
...
...
@@ -59,7 +59,6 @@ struct TwoCutInt {
}
inline
int
getClass
(
const
Mapping
&
map
)
const
{
int
ret
=
S
.
classMatrix
[
map
[
a
]][
flip
?
Ring
::
negate
(
map
[
b
])
:
map
[
b
]];
return
S
.
classMatrix
[
map
[
a
]][
flip
?
Ring
::
negate
(
map
[
b
])
:
map
[
b
]];
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment