help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory copy or not?


From: Fredrik Lingvall
Subject: Memory copy or not?
Date: Tue, 04 Sep 2007 13:45:57 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20070804)

I have an oct-file where I do something like:

Matrix Ymat(M,N);
Y = Ymat.fortran_vec();

% Do some stuff here.

oct_retval.append(Ymat);
return oct_retval;

Does the operation,

   oct_retval.append(Ymat);

copy the data in Ymat and if so is there a way to avoid this (Ymat may be a very large matrix).

/Fredrik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]