[Dune] Fwd: Re: another little c++ question that bugs me

Markus Blatt markus at dr-blatt.de
Wed Aug 13 13:25:36 CEST 2014


On Wed, Aug 13, 2014 at 12:21:43PM +0200, Aleksejs Fomins wrote:
> Thank you, I will correct it and keep it in mind.
> 
> 
> I have another question, if possible.
> 
> I need to use Dune::DynamicMatrix< K >, because I require a matrix whose
> dimensions are determined at runtime.
> 
> However neither the template parameter nor the constructor require any
> information about the dimensions of the matrix. How do I specify the
> dimension?
> 

Please read the documentation again:

http://www.dune-project.org/doc/doxygen/html/classDune_1_1DynamicMatrix.html

and you might notice this:

DynamicMatrix (size_type r, size_type c, value_type v=value_type())

I have to admit that the parameter names are not speaking to us. But I
would assume that r and c are the number of rows and columns.

Cheers,

Markus
-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140813/056b4932/attachment.sig>


More information about the Dune mailing list