Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
fbb1d5c0
Commit
fbb1d5c0
authored
Sep 27, 2017
by
Tiago Peixoto
Browse files
int_part.cc: Avoid unnecessary resize
parent
9489f197
Pipeline
#369
passed with stage
in 174 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/support/int_part.cc
View file @
fbb1d5c0
...
...
@@ -43,7 +43,6 @@ void init_q_cache(size_t n_max)
if
(
old_n
>=
n_max
)
return
;
__q_cache
.
resize
(
boost
::
extents
[
0
][
0
]);
__q_cache
.
resize
(
boost
::
extents
[
n_max
+
1
][
n_max
+
1
]);
std
::
fill
(
__q_cache
.
data
(),
__q_cache
.
data
()
+
__q_cache
.
num_elements
(),
-
std
::
numeric_limits
<
double
>::
infinity
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment