Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
f96707f1
Commit
f96707f1
authored
Dec 20, 2012
by
Mathias Goldau
Browse files
[CHANGE
#230
] Removed another anonymous namespace within a header file.
parent
7b757bff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
src/core/common/math/WTensorFunctions.h
src/core/common/math/WTensorFunctions.h
+16
-14
No files found.
src/core/common/math/WTensorFunctions.h
View file @
f96707f1
...
...
@@ -54,22 +54,24 @@ typedef boost::array< std::pair< std::complex< double >, WVector3d >, 3 > EigenS
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
RealEigenSystem
&
sys
);
namespace
/**
* Helper function to sort eigen values on their size. As each eigenvalues has an eigenvector they must be twiddled the same.
*
* \param es Eigensystem consisting of eigenvalues and eigenvectors.
*/
void
sortRealEigenSystem
(
RealEigenSystem
*
es
)
{
void
sortRealEigenSystem
(
RealEigenSystem
*
es
)
if
(
(
*
es
)[
0
].
first
>
(
*
es
)[
2
].
first
)
{
if
(
(
*
es
)[
0
].
first
>
(
*
es
)[
2
].
first
)
{
std
::
swap
(
(
*
es
)[
0
],
(
*
es
)[
2
]
);
}
if
(
(
*
es
)[
0
].
first
>
(
*
es
)[
1
].
first
)
{
std
::
swap
(
(
*
es
)[
0
],
(
*
es
)[
1
]
);
}
if
(
(
*
es
)[
1
].
first
>
(
*
es
)[
2
].
first
)
{
std
::
swap
(
(
*
es
)[
1
],
(
*
es
)[
2
]
);
}
std
::
swap
(
(
*
es
)[
0
],
(
*
es
)[
2
]
);
}
if
(
(
*
es
)[
0
].
first
>
(
*
es
)[
1
].
first
)
{
std
::
swap
(
(
*
es
)[
0
],
(
*
es
)[
1
]
);
}
if
(
(
*
es
)[
1
].
first
>
(
*
es
)[
2
].
first
)
{
std
::
swap
(
(
*
es
)[
1
],
(
*
es
)[
2
]
);
}
}
...
...
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