[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-task-tracker] [task #12601] Octave/Matlab differences regarding
From: |
Rik |
Subject: |
[Octave-task-tracker] [task #12601] Octave/Matlab differences regarding Java |
Date: |
Sat, 04 May 2013 22:35:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.gnu.org/task/?12601>
Summary: Octave/Matlab differences regarding Java
Project: GNU Octave
Submitted by: rik5
Submitted on: Sat 04 May 2013 03:35:40 PM PDT
Should Start On: Sat 04 May 2013 12:00:00 AM PDT
Should be Finished on: Sat 04 May 2013 12:00:00 AM PDT
Category: Wish
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Details:
This is a list of incompatibilities between the Java implementation in Matlab
and the current implementation in the development version of core Octave (not
the Java package from Octave Forge). This is a laundry list which I haven't
prioritized.
im2java() function is missing
javaaddpath (-end) functionality
Requires 'clear -java' to clear out any old objects
javaclasspath (path) functionality.
path is string or cell array of strings
path is converted to absolute from relative.
Requires 'clear -java' to clear out any old objects
javaclasspath (path1, path2) functionality.
java/dlgtest.m should be removed and tests put in %!demo or %!test blocks
for each dialog class (warning, error, etc.)
Need to figure out how to call
x = java.lang.Double (4.2) directly
This would probable be a parser change and might have to wait until the
classdef branch is merged to default.
box C++ routine needs to support JavaArrays such as listdlg returning []int.
Is linear indexing of Java Array allowed by Matlab?
When indexing a Java Array is a vector of the same dimension as the original
matrix returned?
x = javaArray ('java.lang.Boolean', [2 3])
y = x(1)
size (y)
Should size be 1x3 as in original array, or does it not matter and 3x1
(current value) is fine.
unbox routine, does it correctly handle signed versus unsigned?
resize() method for java_object arrays needed in ov-java.cc.
disp() for primitive objects should be better. For example, Matlab is able to
display a javaArray when the type is of type java.lang.Double.
*SUPPPORT* for method(obj) syntax.
Matlab supports either obj.method() or method(obj) without use of javaMethod
call.
clear needs a '-java' option
clear needs a '-mex' option
javachk.m needs implementation
http://www.mathworks.com/help/matlab/ref/javachk.html
The following routines need to be overloaded in ov-java.cc.
double (jobj) needs to be overloaded
char (job) needs to be overloaded for arrays of strings/stringbuffers.
It currently returns a cellstr which is awfully close to what is required.
struct (job) needs to be overloaded
cell (javaArray) needs to be overloaded
exist needs to be overloaded to return 8 for Java class
which expanded to cover Java methods
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/task/?12601>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-task-tracker] [task #12601] Octave/Matlab differences regarding Java,
Rik <=