org.python.modules.jarray Maven / Gradle / Ivy
Go to download
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);
}
}