Message35

Author bckfnn
Recipients
Date 2000-11-18.18:53:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A float PyArray will be autoconverted to a double array. Even when the
float array is a valid arg to a java method.

------------------ FILE: test157.py ------------------ 
import test157j

from jarray import *
f = zeros(2,'d');
print test157j.test(f); 
print f

f = zeros(2,'f'); f
print test157j.test(f); 
print f
------------------ END ------------------ 

------------------ FILE: test157j.java ------------------ 
public class test157j {
    public static String test(float[] arr) {
        arr[0]=100; 
        return "float";
    }
    public static String test(double[] arr) {
        arr[0]=100;
        return "double";
    }
}
------------------ END ------------------ 
History
Date User Action Args
2008-02-20 17:16:38adminlinkissue222799 messages
2008-02-20 17:16:38admincreate