Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
4029b07a
Commit
4029b07a
authored
11 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
[DenseMatrix] add the discussed interface for ConstDenseMatrix (only for documentation purpose)
parent
144b9f69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/densematrix.hh
+85
-0
85 additions, 0 deletions
dune/common/densematrix.hh
with
85 additions
and
0 deletions
dune/common/densematrix.hh
+
85
−
0
View file @
4029b07a
...
...
@@ -100,6 +100,91 @@ namespace Dune
/** @brief Error thrown if operations of a FieldMatrix fail. */
class
FMatrixError
:
public
Exception
{};
#ifdef DOYXGEN
class
ConstDenseMatrix
{
typedef
DenseMatVecTraits
<
MAT
>
Traits
;
public:
//===== type definitions and constants
//! export the type representing the field
typedef
typename
Traits
::
value_type
field_type
;
//! The type used for the index access and size operation
typedef
typename
Traits
::
size_type
size_type
;
//===== linear maps
//! y = A x
template
<
class
X
,
class
Y
>
void
mv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y = A^T x
template
<
class
X
,
class
Y
>
void
mtv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y += A x
template
<
class
X
,
class
Y
>
void
umv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y += A^T x
template
<
class
X
,
class
Y
>
void
umtv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y += A^H x
template
<
class
X
,
class
Y
>
void
umhv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y -= A x
template
<
class
X
,
class
Y
>
void
mmv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y -= A^T x
template
<
class
X
,
class
Y
>
void
mmtv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y -= A^H x
template
<
class
X
,
class
Y
>
void
mmhv
(
const
X
&
x
,
Y
&
y
)
const
;
//! y += alpha A x
template
<
class
X
,
class
Y
>
void
usmv
(
const
field_type
&
alpha
,
const
X
&
x
,
Y
&
y
)
const
;
//! y += alpha A^T x
template
<
class
X
,
class
Y
>
void
usmtv
(
const
field_type
&
alpha
,
const
X
&
x
,
Y
&
y
)
const
;
//! y += alpha A^H x
template
<
class
X
,
class
Y
>
void
usmhv
(
const
field_type
&
alpha
,
const
X
&
x
,
Y
&
y
)
const
;
//===== norms
//! frobenius norm: sqrt(sum over squared values of entries)
typename
FieldTraits
<
value_type
>::
real_type
frobenius_norm
()
const
;
//! square of frobenius norm, need for block recursion
typename
FieldTraits
<
value_type
>::
real_type
frobenius_norm2
()
const
;
//! infinity norm (row sum norm, how to generalize for blocks?)
typename
FieldTraits
<
value_type
>::
real_type
infinity_norm
()
const
;
//! simplified infinity norm (uses Manhattan norm for complex values)
typename
FieldTraits
<
value_type
>::
real_type
infinity_norm_real
()
const
;
// Wishlist (Martin)
// typename FieldTraits<value_type>::real_type sqrt_det_ATA () const;
//===== allow cast to FieldMatrix
//! cast to FieldMatrix
operator
FieldMatrix
<
K
,
N
,
M
>
()
const
;
};
#endif
/**
@brief A dense n x m 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