On Tue, Sep 30, 2008 at 10:31:02PM +0200, Johan Hake wrote: > Hello! > > Attached is a bundle with changes to the GenericMatrix interface regarding > the > operators +=, -= and axpy. These operators are also added in PyDOLFIN > together with the + and -. > > I have implemented all operator= and copy constructors for the included > Matrices, excluding STLMatrix. I kept the copy constructor explicit, and > therefor I did not implement the the + or - operator. These can be added, but > will lead to unnesessary many temporary matrix objects. > > I have cleaned up in the swig la interface files. > > I added a unit test for the added operators in Python, for all backends, and > a > dummy unit test in cpp. We should fill that one out...
Very nice! I look forward to applying the patch (if no one else gets there first, I'll be busy until tomorrow night). > Now I know alot more about operators, copy constructors and swig interface > files, than I did three days ago :) :-) -- Anders
signature.asc
Description: Digital signature
_______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
