All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.

There is a newer version: 2.7.4
Show newest version
// 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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy