Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Sébastien Villemot
dynare
Commits
b956a225
Verified
Commit
b956a225
authored
1 year ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
C++20 modernization: use abbreviated function template syntax
parent
00bba099
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mex/sources/sobol/gaussian.hh
+5
-9
5 additions, 9 deletions
mex/sources/sobol/gaussian.hh
with
5 additions
and
9 deletions
mex/sources/sobol/gaussian.hh
+
5
−
9
View file @
b956a225
...
...
@@ -2,7 +2,7 @@
**
** Pseudo code of the algorithm is given at http://home.online.no/~pjacklam/notes/invnorm
**
** Copyright © 2010-202
3
Dynare Team
** Copyright © 2010-202
4
Dynare Team
**
** This file is part of Dynare.
**
...
...
@@ -104,9 +104,8 @@ icdf(const T uniform)
return
gaussian
;
}
template
<
typename
T
>
void
icdfm
(
int
n
,
T
*
U
)
icdfm
(
int
n
,
auto
*
U
)
{
#pragma omp parallel for
for
(
int
i
=
0
;
i
<
n
;
i
++
)
...
...
@@ -114,9 +113,8 @@ icdfm(int n, T* U)
return
;
}
template
<
typename
T
>
void
icdfmSigma
(
int
d
,
int
n
,
T
*
U
,
const
double
*
LowerCholSigma
)
icdfmSigma
(
int
d
,
int
n
,
auto
*
U
,
const
double
*
LowerCholSigma
)
{
double
one
=
1.0
;
double
zero
=
0.0
;
...
...
@@ -128,9 +126,8 @@ icdfmSigma(int d, int n, T* U, const double* LowerCholSigma)
copy_n
(
tmp
.
begin
(),
d
*
n
,
U
);
}
template
<
typename
T
>
void
usphere
(
int
d
,
int
n
,
T
*
U
)
usphere
(
int
d
,
int
n
,
auto
*
U
)
{
icdfm
(
n
*
d
,
U
);
#pragma omp parallel for
...
...
@@ -147,9 +144,8 @@ usphere(int d, int n, T* U)
}
}
template
<
typename
T
>
void
usphereRadius
(
int
d
,
int
n
,
double
radius
,
T
*
U
)
usphereRadius
(
int
d
,
int
n
,
double
radius
,
auto
*
U
)
{
icdfm
(
n
*
d
,
U
);
#pragma omp parallel for
...
...
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