[Dune] leftmultiply function
arya fallahi
arya.fallahi at psi.ch
Fri Jan 28 14:30:15 CET 2011
Dear Dune developer team,
I just figured out that the reason can be the change in size of the matrix and the need for allocating memory. Let me ask my question in a different way. I have two rectangular dynamic matrices (Dune::DynamicMatrix) and want to multiply them with each other. How can I do that using the available functions (leftmultiply and leftmultiplyany) in dune?
Thanks,
Arya
On Jan 28, 2011, at 2:19 PM, arya fallahi wrote:
> Dear Dune developer team,
>
> I am trying to multiply to rectangular matrices using the Dune::DenseMatrix class. However, I saw in the source code that one can only use leftmultiply and rightmultiply functions for square matrices.
> assert(M.rows() == M.cols() && M.rows() == rows());
> Is there a particular reason for that? why don't you remove the first condition and let dune fulfill the multiplication also for rectangular matrices??
>
> Thanks,
>
> Arya Fallahi,
> Dr. sc. techn. ETH,
> Computational Accelerator Scientist
> Paul Scherrer Institute (PSI),
> CH-5232 Villigen, Switzerland,
> arya.fallahi at psi.ch,
> +41(0)56 310 50 17
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110128/4eea8d68/attachment.htm>
More information about the Dune
mailing list