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
d99f321a
Commit
d99f321a
authored
13 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Don't divide by the determinant in the gradient; add a default constructor
[[Imported from SVN: r8562]]
parent
7c46ed8e
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
dune/gfe/orthogonalmatrix.hh
+6
-6
6 additions, 6 deletions
dune/gfe/orthogonalmatrix.hh
with
6 additions
and
6 deletions
dune/gfe/orthogonalmatrix.hh
+
6
−
6
View file @
d99f321a
...
...
@@ -12,17 +12,17 @@ class OrthogonalMatrix
{
public:
/** \brief Default constructor -- leaves the matrix uninitialized */
OrthogonalMatrix
()
{}
/** \brief Constructor from a general matrix
*
* The input matrix gets normalized to det = 1. Since computing
* the determinant is expensive you may not want to use this method
* if you know your input matrix to be orthogonal anyways.
* It is not checked whether the matrix is really orthogonal
*/
explicit
OrthogonalMatrix
(
const
Dune
::
FieldMatrix
<
T
,
N
,
N
>&
matrix
)
:
data_
(
matrix
)
{
data_
/=
matrix
.
determinant
();
}
{}
/** \brief Const access to the matrix entries */
const
Dune
::
FieldMatrix
<
T
,
N
,
N
>&
data
()
const
...
...
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