Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
97742c9a
Commit
97742c9a
authored
14 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
docs update
parent
0ffceedd
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
stuff/matrix.hh
+13
-10
13 additions, 10 deletions
stuff/matrix.hh
with
13 additions
and
10 deletions
stuff/matrix.hh
+
13
−
10
View file @
97742c9a
...
...
@@ -155,11 +155,11 @@ void addMatrix(MatrixType& dest, const MatrixType& arg, const double eps = 1e-14
}
}
/** @brief Write sparse matrix to given out
going
stream
*
* @param[in] matrix The matrix to be written
* @param[in] out The outgoing stream
*/
/** @brief Write sparse matrix to given out
put
stream
*
* @param[in] matrix The matrix to be written
* @param[in] out The outgoing stream
*/
template
<
class
SparseMatrixImpl
,
class
Output
>
void
writeSparseMatrix
(
const
SparseMatrixImpl
&
matrix
,
Output
&
out
)
{
...
...
@@ -178,11 +178,11 @@ void writeSparseMatrix(const SparseMatrixImpl& matrix, Output& out)
return
;
}
/** @brief Read sparse matrix from given in
going
stream
*
* @param[out] matrix The matrix to be read
* @param[in] in The ingoing stream
*/
/** @brief Read sparse matrix from given in
put
stream
*
* @param[out] matrix The matrix to be read
* @param[in] in The ingoing stream
*/
template
<
class
SparseMatrixImpl
,
class
Input
>
void
readSparseMatrix
(
SparseMatrixImpl
&
matrix
,
Input
&
in
)
{
...
...
@@ -216,12 +216,15 @@ void readSparseMatrix(SparseMatrixImpl& matrix, Input& in)
}
namespace
Matrix
{
//! prints actual memusage of matrix in kB
template
<
class
MatrixType
,
class
Stream
>
void
printMemUsage
(
const
MatrixType
&
matrix
,
Stream
&
stream
,
std
::
string
name
=
""
)
{
long
size
=
matrix
.
numberOfValues
()
*
sizeof
(
typename
MatrixType
::
Ttype
)
/
1024.
f
;
stream
<<
"matrix size "
<<
name
<<
"
\t\t
"
<<
size
<<
std
::
endl
;
}
//! prints actual memusage of matrixobject in kB
template
<
class
MatrixObjectType
,
class
Stream
>
void
printMemUsageObject
(
const
MatrixObjectType
&
matrix_object
,
Stream
&
stream
,
std
::
string
name
=
""
)
{
...
...
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