Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
ed514577
Commit
ed514577
authored
6 months ago
by
David Gutiérrez Menéndez
Committed by
Sergey Gorbunov
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing header in CaConfigReader.
#3470
parent
42abd8c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1963
Fix missing header in CaConfigReader. #3470
Pipeline
#31785
passed
6 months ago
Stage: build
Stage: package
Stage: verify
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
algo/ca/core/pars/CaConfigReader.h
+1
-0
1 addition, 0 deletions
algo/ca/core/pars/CaConfigReader.h
algo/ca/core/utils/CaVector.h
+6
-0
6 additions, 0 deletions
algo/ca/core/utils/CaVector.h
with
7 additions
and
0 deletions
algo/ca/core/pars/CaConfigReader.h
+
1
−
0
View file @
ed514577
...
...
@@ -11,6 +11,7 @@
#include
"CaIteration.h"
#include
<functional>
#include
<string>
#include
<unordered_map>
#include
<vector>
...
...
This diff is collapsed.
Click to expand it.
algo/ca/core/utils/CaVector.h
+
6
−
0
View file @
ed514577
...
...
@@ -133,6 +133,7 @@ namespace cbm::algo::ca
template
<
typename
...
Tinput
>
void
enlarge
(
std
::
size_t
count
,
Tinput
...
value
)
{
#ifndef FAST_CODE
if
(
count
<
Tbase
::
size
())
{
LOG
(
fatal
)
<<
"ca::Vector
\"
"
<<
fName
<<
"
\"
::enlarge("
<<
count
<<
"): the new size is smaller than the current one "
<<
Tbase
::
size
()
<<
", something goes wrong."
;
...
...
@@ -143,6 +144,7 @@ namespace cbm::algo::ca
<<
Tbase
::
capacity
()
<<
" is reached, the vector of size "
<<
Tbase
::
size
()
<<
" will be copied to the new place."
;
}
#endif
Tbase
::
resize
(
count
,
value
...);
}
...
...
@@ -150,11 +152,13 @@ namespace cbm::algo::ca
/// \param count Size of the new vector
void
reduce
(
std
::
size_t
count
)
{
#ifndef FAST_CODE
if
(
count
>
Tbase
::
size
())
{
LOG
(
fatal
)
<<
"ca::Vector
\"
"
<<
fName
<<
"
\"
::reduce("
<<
count
<<
"): the new size is bigger than the current one "
<<
Tbase
::
size
()
<<
", something goes wrong."
;
assert
(
count
<
Tbase
::
size
());
}
#endif
Tbase
::
resize
(
count
);
}
...
...
@@ -162,11 +166,13 @@ namespace cbm::algo::ca
/// \param count New size of the vector
void
reserve
(
std
::
size_t
count
)
{
#ifndef FAST_CODE
if
(
!
Tbase
::
empty
())
{
LOG
(
fatal
)
<<
"ca::Vector
\"
"
<<
fName
<<
"
\"
::reserve("
<<
count
<<
"): the vector is not empty; "
<<
" it will be copied to the new place."
;
assert
(
Tbase
::
empty
());
}
#endif
Tbase
::
reserve
(
count
);
}
...
...
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