[Dune] Fwd: Re: another little c++ question that bugs me
aleksejs.fomins at lspr.ch
Wed Aug 13 14:00:25 CEST 2014
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.
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
> Please read the documentation again:
> 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.
> Dune mailing list
> Dune at dune-project.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 551 bytes
Desc: OpenPGP digital signature
More information about the Dune