<div class="gmail_quote">On Sat, Nov 28, 2009 at 10:42 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I added ShallowCopy functions to these classes:<br><a href="http://www.rpi.edu/~doriad/VTK_List/MatrixShallowCopy/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/MatrixShallowCopy/</a><br><br>I think it would be nice to commit them.<br>

<br clear="all"></blockquote><div>What is the shallow copy doing differently to the deep copy? The main difference seems to be that Updated() is not called when appropriate with ShallowCopy and it uses function calls (that would be slower) to copy each elements value. Wouldn't s true ShallowCopy copy the pointer to the data?</div>
<div><br></div><div>If it would be useful I could add a ShallowCopy method, but as these classes declare double[4][4] and double[3][3] I am not sure ShallowCopy makes sense.</div><div><br></div><div>Marcus</div></div>-- <br>
Marcus D. Hanwell, Ph.D.<br>R&D Engineer, Kitware Inc.<br>(518) 881-4937<br>