<div class="gmail_quote">On Wed, May 16, 2012 at 8:22 AM, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron.ahmadia@kaust.edu.sa" target="_blank">aron.ahmadia@kaust.edu.sa</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You do realize that MatDuplicate is making a copy, right?</blockquote></div><br><div>Maybe you were intending to use MatCopy()?</div>