Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Sander, Oliver
dune-gfe
Commits
6e0de088
Commit
6e0de088
authored
13 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make rotationtest compile again
[[Imported from SVN: r8192]]
parent
8c48efda
No related branches found
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
test/rotationtest.cc
+4
-4
4 additions, 4 deletions
test/rotationtest.cc
with
4 additions
and
4 deletions
test/rotationtest.cc
+
4
−
4
View file @
6e0de088
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
#include
<dune/common/fmatrix.hh>
#include
<dune/common/fmatrix.hh>
#include
<dune/gfe/
quatern
ion.hh>
#include
<dune/gfe/
rotat
ion.hh>
#include
<dune/gfe/svd.hh>
#include
<dune/gfe/svd.hh>
using
namespace
Dune
;
using
namespace
Dune
;
void
testUnitQuaternion
(
Quatern
ion
<
double
>
q
)
void
testUnitQuaternion
(
Rotat
ion
<
double
,
3
>
q
)
{
{
// Make sure it really is a unit quaternion
// Make sure it really is a unit quaternion
q
.
normalize
();
q
.
normalize
();
...
@@ -31,7 +31,7 @@ void testUnitQuaternion(Quaternion<double> q)
...
@@ -31,7 +31,7 @@ void testUnitQuaternion(Quaternion<double> q)
// Turn the matrix back into a quaternion, and check whether it is the same one
// Turn the matrix back into a quaternion, and check whether it is the same one
// Since the quaternions form a double covering of SO(3), we may either get q back
// Since the quaternions form a double covering of SO(3), we may either get q back
// or -q. We have to check both.
// or -q. We have to check both.
Quatern
ion
<
double
>
newQ
;
Rotat
ion
<
double
,
3
>
newQ
;
newQ
.
set
(
matrix
);
newQ
.
set
(
matrix
);
Quaternion
<
double
>
diff
=
newQ
;
Quaternion
<
double
>
diff
=
newQ
;
...
@@ -61,7 +61,7 @@ void testUnitQuaternion(Quaternion<double> q)
...
@@ -61,7 +61,7 @@ void testUnitQuaternion(Quaternion<double> q)
for
(
int
l
=-
2
;
l
<
2
;
l
++
)
for
(
int
l
=-
2
;
l
<
2
;
l
++
)
if
(
i
!=
0
||
j
!=
0
||
k
!=
0
||
l
!=
0
)
{
if
(
i
!=
0
||
j
!=
0
||
k
!=
0
||
l
!=
0
)
{
Quaternion
<
double
>
q2
(
i
,
j
,
k
,
l
);
Rotation
<
double
,
3
>
q2
(
Quaternion
<
double
>
(
i
,
j
,
k
,
l
)
)
;
q2
.
normalize
();
q2
.
normalize
();
// set up corresponding rotation matrix
// set up corresponding rotation matrix
...
...
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