help-octave
[Top][All Lists]
Advanced

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

Re: rename, save `whos`


From: Daniel Heiserer
Subject: Re: rename, save `whos`
Date: Fri, 14 Jul 2000 07:15:50 +0200

> | Hi,
> | is there a way to rename a matrix.
> | I mean a real "move" not a "copy"
> | and a delete.
> |
> | The thing is that I have thousands of matrices in my
> | memory and I do not want to shuffle
> | GB of ram around.....
> 
> Someone else already pointed out that an assignment like
> 
>   b = a;
> 
> doesn't actually make a copy of the data.  Instead, it simply adds a
> new symbol to the symbol table and increments a reference count.  A
> copy of the data will be made if you later modify either a or b (by
> doing something like b(1,2) = 3, for example).
> 

I am really impressed. :-)


Thanks so far
daniel



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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