Message35
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 ------------------
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:38 | admin | link | issue222799 messages |
2008-02-20 17:16:38 | admin | create | |
|