Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
72a134e4
Commit
72a134e4
authored
1 year ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Patches
Plain Diff
MakeScale: add GenericScale
parent
32d9b690
No related branches found
No related tags found
2 merge requests
!1847
rebase on latest r21
,
!1825
Unify API and Scale types
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Axis/MakeScale.cpp
+4
-0
4 additions, 0 deletions
Base/Axis/MakeScale.cpp
Base/Axis/MakeScale.h
+1
-0
1 addition, 0 deletions
Base/Axis/MakeScale.h
with
5 additions
and
0 deletions
Base/Axis/MakeScale.cpp
+
4
−
0
View file @
72a134e4
...
@@ -49,6 +49,10 @@ std::vector<Bin1D> bounds2division(size_t N, double start, double end)
...
@@ -49,6 +49,10 @@ std::vector<Bin1D> bounds2division(size_t N, double start, double end)
}
// namespace
}
// namespace
Scale
GenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
)
{
return
Scale
(
name
,
limits2bins
(
limits
));
}
Scale
*
newGenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
)
Scale
*
newGenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Base/Axis/MakeScale.h
+
1
−
0
View file @
72a134e4
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
class
Scale
;
class
Scale
;
Scale
GenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
);
#ifndef SWIG
#ifndef SWIG
Scale
*
newGenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
);
Scale
*
newGenericScale
(
const
std
::
string
&
name
,
const
std
::
vector
<
double
>&
limits
);
#endif // SWIG
#endif // SWIG
...
...
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