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

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

[Octave-bug-tracker] [bug #56037] qp exits with an indexing error for a


From: Rik
Subject: [Octave-bug-tracker] [bug #56037] qp exits with an indexing error for a specific input with OpenBLAS
Date: Wed, 3 Apr 2019 13:49:13 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #56037 (project octave):

                  Status:         Patch Submitted => Patch Reviewed         

    _______________________________________________________

Follow-up Comment #12:

Regarding getting rid of the for loop...

One thing would be to call the Octave min() function (available as Fmin) from
C++ since the second return argument is the index that you seek.  But, this
does involve wrapping the inputs in octave_value_list and then unpacking the
outputs that are also in an octave_value_list.  It probably isn't worth that
complication.

Another possibility is to use the C++ code that min() eventually calls.


Array<octave_idx_type> idx;
min = array.min (idx, dim);


If I understand it correctly, eigenvalrH is a column vector so the declaration
could be just


octave_idx_type idx;
min = eigenvalrH.min (idx, dim);




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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