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

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

[Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or prov


From: Massimiliano Fasi
Subject: [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions
Date: Sat, 08 Mar 2014 16:40:58 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #1, bug #41796 (project octave):

I have started working on the problem, modifying the function _sub2ind_ in
+markup+
octave/libinterp/corefcn/sub2ind.cc
-markup-
so that it is able to parse the arguments as required [see submitted patch].
If somebody can check my idea and approve it, I can extend the same approach
to the function ind2sub in the same file. After this, I could implement the
functions in
+markup+
octave-mechanics/inst/core/private/ind2sub_tril.m
octave-mechanics/inst/core/private/sub2ind_tril.m
-markup-
and put them in
+markup+
octave/liboctave/array/Array-util.cc
-markup-
that is the file that already contains the C++ implementation of sub2ind and
ind2sub. Any feedback will be appreciated :-)

(file #30828)
    _______________________________________________________

Additional Item Attachment:

File name: sub2ind_interface.patch        Size:3 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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