[Dune] leftmultiply function

arya fallahi arya.fallahi at psi.ch
Fri Jan 28 14:19:36 CET 2011


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110128/0729dc69/attachment.htm>


More information about the Dune mailing list