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
a981a02c
Commit
a981a02c
authored
13 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
replace an 'I'm not really sure'-style comment by a proper explanation
[[Imported from SVN: r8368]]
parent
4e03c456
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/rotation.hh
+12
-12
12 additions, 12 deletions
dune/gfe/rotation.hh
with
12 additions
and
12 deletions
dune/gfe/rotation.hh
+
12
−
12
View file @
a981a02c
...
@@ -651,9 +651,9 @@ public:
...
@@ -651,9 +651,9 @@ public:
// use the functionality from the unitvector class
// use the functionality from the unitvector class
Dune
::
FieldMatrix
<
T
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
secondDerivativeOfDistanceSquaredWRTSecondArgument
(
p
.
globalCoordinates
(),
Dune
::
FieldMatrix
<
T
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
secondDerivativeOfDistanceSquaredWRTSecondArgument
(
p
.
globalCoordinates
(),
q
.
globalCoordinates
());
q
.
globalCoordinates
());
//
for some reason that I don't really understand, the distance we have defined for th
e ro
tations (== Unit quaternions
)
//
The unit quaternions form a double cover of SO(3). That means going onc
e
a
ro
und the unit sphere (2\pi
)
//
is twice the corresponding distance on the unit quaternions seen as a sphere. Hence the derivative of the
//
means going twice around SO(3) (4\pi). Hence there is a factor 2, which in addition we need to square,
//
squared distance needs to be multiplied by 4
.
//
because we are considering the squared distance
.
result
*=
4
;
result
*=
4
;
return
result
;
return
result
;
}
}
...
@@ -666,9 +666,9 @@ public:
...
@@ -666,9 +666,9 @@ public:
// use the functionality from the unitvector class
// use the functionality from the unitvector class
Dune
::
FieldMatrix
<
T
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
secondDerivativeOfDistanceSquaredWRTFirstAndSecondArgument
(
p
.
globalCoordinates
(),
Dune
::
FieldMatrix
<
T
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
secondDerivativeOfDistanceSquaredWRTFirstAndSecondArgument
(
p
.
globalCoordinates
(),
q
.
globalCoordinates
());
q
.
globalCoordinates
());
//
for some reason that I don't really understand, the distance we have defined for th
e ro
tations (== Unit quaternions
)
//
The unit quaternions form a double cover of SO(3). That means going onc
e
a
ro
und the unit sphere (2\pi
)
//
is twice the corresponding distance on the unit quaternions seen as a sphere. Hence the derivative of the
//
means going twice around SO(3) (4\pi). Hence there is a factor 2, which in addition we need to square,
//
squared distance needs to be multiplied by 4
.
//
because we are considering the squared distance
.
result
*=
4
;
result
*=
4
;
return
result
;
return
result
;
}
}
...
@@ -681,9 +681,9 @@ public:
...
@@ -681,9 +681,9 @@ public:
// use the functionality from the unitvector class
// use the functionality from the unitvector class
Tensor3
<
T
,
4
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
thirdDerivativeOfDistanceSquaredWRTSecondArgument
(
p
.
globalCoordinates
(),
Tensor3
<
T
,
4
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
thirdDerivativeOfDistanceSquaredWRTSecondArgument
(
p
.
globalCoordinates
(),
q
.
globalCoordinates
());
q
.
globalCoordinates
());
//
for some reason that I don't really understand, the distance we have defined for th
e ro
tations (== Unit quaternions
)
//
The unit quaternions form a double cover of SO(3). That means going onc
e
a
ro
und the unit sphere (2\pi
)
//
is twice the corresponding distance on the unit quaternions seen as a sphere. Hence the derivative of the
//
means going twice around SO(3) (4\pi). Hence there is a factor 2, which in addition we need to square,
//
squared distance needs to be multiplied by 4
.
//
because we are considering the squared distance
.
result
*=
4
;
result
*=
4
;
return
result
;
return
result
;
}
}
...
@@ -696,9 +696,9 @@ public:
...
@@ -696,9 +696,9 @@ public:
// use the functionality from the unitvector class
// use the functionality from the unitvector class
Tensor3
<
T
,
4
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
thirdDerivativeOfDistanceSquaredWRTFirst1AndSecond2Argument
(
p
.
globalCoordinates
(),
Tensor3
<
T
,
4
,
4
,
4
>
result
=
UnitVector
<
T
,
4
>::
thirdDerivativeOfDistanceSquaredWRTFirst1AndSecond2Argument
(
p
.
globalCoordinates
(),
q
.
globalCoordinates
());
q
.
globalCoordinates
());
//
for some reason that I don't really understand, the distance we have defined for th
e ro
tations (== Unit quaternions
)
//
The unit quaternions form a double cover of SO(3). That means going onc
e
a
ro
und the unit sphere (2\pi
)
//
is twice the corresponding distance on the unit quaternions seen as a sphere. Hence the derivative of the
//
means going twice around SO(3) (4\pi). Hence there is a factor 2, which in addition we need to square,
//
squared distance needs to be multiplied by 4
.
//
because we are considering the squared distance
.
result
*=
4
;
result
*=
4
;
return
result
;
return
result
;
}
}
...
...
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