Boost logo

Ublas :

From: Dima Sorkin (dsorkin_at_[hidden])
Date: 2006-03-18 09:53:12


Quoting Nico Galoppo :
> I've been wondering for a while now what the best way is to return
> matrices/matrix_expressions from functions, with the least copying possible.
   Returning expressions:
Try to read the code attached to
http://lists.boost.org/MailArchives/ublas/2005/07/0491.php
   Returning matrices:
A possible way is to return via smart-pointers (matrices
created by a "new" operator).

Regards,
 Dima.