Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
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-istl
Merge requests
!265
Implement matlab writing for matrices with scalar entries
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implement matlab writing for matrices with scalar entries
implement-matlab-writing-for-matrices-with-scalar-entries
into
master
Overview
0
Commits
6
Pipelines
2
Changes
3
Merged
Oliver Sander
requested to merge
implement-matlab-writing-for-matrices-with-scalar-entries
into
master
6 years ago
Overview
0
Commits
6
Pipelines
2
Changes
3
Expand
0
0
Merge request reports
Compare
master
version 1
185b42a6
6 years ago
master (base)
and
latest version
latest version
18c2ae24
6 commits,
6 years ago
version 1
185b42a6
4 commits,
6 years ago
3 files
+
48
−
119
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
dune/istl/test/iotest.cc
+
6
−
3
Options
@@ -53,6 +53,9 @@ int main(int argc, char** argv)
// testWriteMatrixToMatlab<Dune::FieldMatrix<std::complex<double>,7,4> >(); // commented because setUpLaplacian cannot handle block_types with more rows than cols
testWriteMatrixToMatlab
<
Dune
::
FieldMatrix
<
std
::
complex
<
double
>
,
2
,
2
>
>
(
Dune
::
FieldMatrix
<
std
::
complex
<
double
>
,
2
,
2
>
(
std
::
complex
<
double
>
(
0
,
1
)));
testWriteMatrixToMatlab
<
double
>
();
testWriteMatrixToMatlab
<
std
::
complex
<
double
>
>
();
/* testing the writeMatrixToMatlabHelper method for BlockType=[Diagonal|ScaledIdentity]Matrix with different field_types */
testWriteMatrixToMatlab
<
Dune
::
DiagonalMatrix
<
double
,
1
>
>
();
testWriteMatrixToMatlab
<
Dune
::
ScaledIdentityMatrix
<
double
,
1
>
>
();
@@ -65,16 +68,16 @@ int main(int argc, char** argv)
testWriteMatrixToMatlab
<
Dune
::
ScaledIdentityMatrix
<
std
::
complex
<
double
>
,
2
>
>
(
Dune
::
ScaledIdentityMatrix
<
std
::
complex
<
double
>
,
2
>
(
std
::
complex
<
double
>
(
0
,
1
)));
/* testing the
test writeMatrix
ToMatlabHelper for FieldVector */
/* testing the
writeVector
ToMatlabHelper
method
for FieldVector */
testWriteVectorToMatlab
<
Dune
::
FieldVector
<
double
,
1
>
>
();
testWriteVectorToMatlab
<
Dune
::
FieldVector
<
float
,
5
>
>
();
testWriteVectorToMatlab
<
Dune
::
FieldVector
<
std
::
complex
<
double
>
,
5
>
>
();
/* testing the
test writeMatrix
ToMatlabHelper for BlockVector */
/* testing the
writeVector
ToMatlabHelper
method
for BlockVector */
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
3
>
>
v1
=
{{
1.0
,
2.0
,
3.0
}};
Dune
::
writeVectorToMatlabHelper
(
v1
,
std
::
cout
);
Dune
::
BlockVector
<
Dune
::
BlockVector
<
Dune
::
FieldVector
<
double
,
1
>
>
>
v2
=
{{
1.0
,
2.0
},
{
3.0
,
4.0
,
5.0
},
{
6.0
}};
Dune
::
writeVectorToMatlabHelper
(
v2
,
std
::
cout
);
/* testing the
test writeMatrix
ToMatlabHelper for STL containers */
/* testing the
writeVector
ToMatlabHelper
method
for STL containers */
testWriteVectorToMatlab
<
std
::
array
<
double
,
5
>
>
();
std
::
vector
<
double
>
v3
;
v3
.
push_back
(
1
);
Loading