src.org.python.modules.jarray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
// Copyright (c) Corporation for National Research Initiatives
package org.python.modules;
import org.python.core.PyArray;
import org.python.core.PyObject;
public class jarray {
public static PyArray array(PyObject seq, char typecode) {
return PyArray.array(seq, typecode);
}
public static PyArray array(PyObject seq, Class type) {
return PyArray.array(seq, type);
}
public static PyArray zeros(int n, char typecode) {
return PyArray.zeros(n, typecode);
}
public static PyArray zeros(int n, Class type) {
return PyArray.zeros(n, type);
}
public static Class> array_class(PyObject type) {
return PyArray.array_class((Class>)type.__tojava__(Class.class));
}
}