On Mon, Nov 22, 2010 at 9:07 AM, Derek Gaston <[email protected]> wrote: > Ummmm.... I'm sure there is a good reason... but why don't we have an > operator=() for SparseMatrix? Am I missing something... or is there no way > to copy a matrix right now?
Depends, does laziness count as a good reason? Petsc provides a MatCopy that we should probably use, not sure about Laspack or Trilinos. Writing custom copy constructors can be such a pain (you have to remember to update them if you ever add any new data members to the class) and can easily lead to bugs if you forget to copy over some boolean flag, etc. That is another reason we probably don't have one. -- John ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
