Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
a523040e
Commit
a523040e
authored
Jul 15, 2020
by
frey_m
Browse files
SigmaGenerator: move initialization
parent
4510a63e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/Distribution/SigmaGenerator.cpp
src/Distribution/SigmaGenerator.cpp
+1
-3
No files found.
src/Distribution/SigmaGenerator.cpp
View file @
a523040e
...
...
@@ -772,8 +772,6 @@ SigmaGenerator::updateInitialSigma(const matrix_t& M,
void
SigmaGenerator
::
updateSigma
(
const
std
::
vector
<
matrix_t
>&
Mscs
,
const
std
::
vector
<
matrix_t
>&
Mcycs
)
{
matrix_t
M
=
boost
::
numeric
::
ublas
::
matrix
<
double
>
(
6
,
6
);
std
::
ofstream
writeSigma
;
if
(
write_m
)
{
...
...
@@ -795,7 +793,7 @@ void SigmaGenerator::updateSigma(const std::vector<matrix_t>& Mscs,
for
(
unsigned
int
i
=
1
;
i
<
nSteps_m
;
++
i
)
{
// transfer matrix for one angle
M
=
boost
::
numeric
::
ublas
::
prod
(
Mscs
[
i
-
1
],
Mcycs
[
i
-
1
]);
matrix_t
M
=
boost
::
numeric
::
ublas
::
prod
(
Mscs
[
i
-
1
],
Mcycs
[
i
-
1
]);
// transfer the matrix sigma
sigmas_m
[
i
]
=
matt_boost
::
gemmm
<
matrix_t
>
(
M
,
sigmas_m
[
i
-
1
],
boost
::
numeric
::
ublas
::
trans
(
M
));
...
...
Write
Preview
Markdown
is supported
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