[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/
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Juan Pablo Carbajal, 2014/03/06
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions,
Massimiliano Fasi <=
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Massimiliano Fasi, 2014/03/08
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Juan Pablo Carbajal, 2014/03/17
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Massimiliano Fasi, 2014/03/18
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Jordi Gutiérrez Hermoso, 2014/03/18
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Juan Pablo Carbajal, 2014/03/18
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Eduardo Ramos Fernández, 2014/03/19
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Eduardo Ramos Fernández, 2014/03/19
- [Octave-bug-tracker] [bug #41796] Generalize sub2ind and ind2sub or provide specialized functions, Massimiliano Fasi, 2014/03/19