octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53356] svd: allow 2 return arguments


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #53356] svd: allow 2 return arguments
Date: Sat, 17 Mar 2018 18:09:54 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Follow-up Comment #6, bug #53356 (project octave):

I'm sure that works but it'd be interesting to know what happens to the unused
element of the ovl object. Some crude testing suggests it is cleaned up
properly.

A=randn(1000)+i*randn(1000);
for k=1:10;system('free -m');[U S]=svd(A,0);end

We should lose about 160Mb if the missing V argument were leaked.

Output:
++
              total        used        free      shared  buff/cache  
available
Mem:           7823        1432        4353          87        2037       
5977
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1511        4273          85        2038       
5899
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1493        4290          87        2039       
5916
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1493        4290          86        2039       
5916
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1496        4288          86        2039       
5914
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1480        4302          85        2041       
5931
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1477        4304          85        2040       
5934
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1477        4304          85        2041       
5933
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1508        4272          85        2042       
5903
Swap:          8191           0        8191
              total        used        free      shared  buff/cache  
available
Mem:           7823        1541        4240          85        2042       
5869
Swap:          8191           0        8191
--

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53356>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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