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

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Aug 13 14:00:25 CEST 2014


Hi,

Thanks again, it makes sense now.

In my humble opinion I would suggest to expand the description of the
constructor, as "Constructor initializing the whole matrix with a
scalar." is a bit brief.

Cheers,
Aleksejs

On 08/13/2014 01:25 PM, Markus Blatt wrote:
> 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
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140813/9497da23/attachment.pgp>


More information about the Dune mailing list