[Dune] [#379] writeMatrixToMatlab for std::complex not Matlab-readable
Dune
dune at dune-project.org
Mon Apr 14 10:14:06 CEST 2008
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Patrick Leidenberger (leidenberger)
Attached to Project - Dune
Summary - writeMatrixToMatlab for std::complex not Matlab-readable
Task Type - Bug Report
Category - ISTL
Status - New
Assigned To -
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - Dune::writeMatrixToMatlab has some problems if the values in a Matrix are of type std::complex. The file output look like this:
1 1 (0.5,0.2)
1 3 (0.5,0.2)
...
But this is not Matlab-readable, for Matlab it needs to have four plain columns, like this:
1 1 0.5 0.2
1 3 0.5 0.2
...
cf. e.g. http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/spconvert.html
The problem is the << operator for complex:
s << rowOffset + i + 1 << " " << colOffset + j + 1 << " " << matrix[i][j] << std::endl;
file: istl/io.hh line 320
More information can be found at the following URL:
http://conan.informatik.uni-stuttgart.de/flyspray/index.php?do=details&task_id=379
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list