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

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

[Octave-bug-tracker] [bug #60784] Inconsistent behavior for boolean matr


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #60784] Inconsistent behavior for boolean matrix types with matrix functions
Date: Tue, 15 Jun 2021 23:00:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #2, bug #60784 (project octave):

You must be hitting swap or something:


octave:1> A = rand (2e4);
octave:2> B = logical (A);
octave:3> C = single(B);
octave:4> whos
Variables visible from the current scope:

variables in scope: top scope

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
        A       20000x20000             3200000000  double
        B       20000x20000              400000000  logical
        C       20000x20000             1600000000  single

Total is 1200000000 elements using 5200000000 bytes

octave:5>  tic; det (A); toc
Elapsed time is 16.9533 seconds.
octave:6>  tic; det (B), toc
ans = 0
Elapsed time is 14.8917 seconds.
octave:7> tic; det (double (B)), toc
ans = 0
Elapsed time is 14.948 seconds.
octave:8> tic; det (C), toc
ans = 0
Elapsed time is 7.50517 seconds.
octave:9>  tic; det (A), toc
ans = Inf
Elapsed time is 16.9971 seconds.
octave:10> 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60784>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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