The OP is from 2011. So as of end of 2015 I would like mention that there is a new kid in town which claims to be numpy for java -> nd4j]. The nice thing is that nd4j is an abstraction layer on top of different libraries like blas. Depending on the size of your matrices there are underlying implementations twice as fast as numpy or jblas. And your code is real platform independent.

Answer from KIC on Stack Overflow
🌐
Beyondthelines
beyondthelines.net › machine-learning › nd4j-numpy-for-the-jvm
Nd4j – Numpy for the JVM – Beyond the lines
JavaCPP also manages the off-heap memory where the data (tensors/matrices/…) are stored. Now that we’re all setup let’s see how the code looks like with a very basic example: ... val ones = Nd4j.create(3, 2) // 3 x 2 matrix filled with 0s ones.addi(1.0) // addi stands for add in-place println(s"ones: \n$ones") val matrix = Nd4j.create( Array(1.0, 2.0, 3.0, 4.0, 5.0, 6.0), // the values Array(3, 2), // dimensions: 3 x 2 'c' // 'c' c-style (row major) ) println(s"matrix: \n$matrix") val result = ones.transpose mmul matrix // onesT x matrix println(s"result: \n$result")
🌐
InfoWorld
infoworld.com › home › brandposts › bringing the world of deep learning to java
A Guide to Using NDArrays in Java | InfoWorld
December 8, 2020 - In Python, the standard library for NDArrays is called NumPy. However, there is no equivalent standard library in Java. One offering for Java developers interested in working with NDArrays is AWS’s Deep Java Library (DJL).
🌐
Reddit
reddit.com › r/java › numpy equivalent for java?
r/java on Reddit: NumPy equivalent for Java?
November 4, 2021 - it does have some datatypes in (such as biginteger) but the the collections (similar to some found in numpy) are in java.util
🌐
DEV Community
dev.to › darius_nica › introducing-numpy4j-bringing-numpy-style-computing-tojava-3gha
Introducing NumPy4J: Bringing NumPy-Style Computing toJava - DEV Community
July 22, 2026 - I wanted a similar experience in Java: a lightweight, dependency-free library for working with multidimensional arrays and linear algebra. That idea became NumPy4J.
🌐
NumPy
numpy.org › doc › 2.2 › reference › generated › numpy.ones_like.html
numpy.ones_like — NumPy v2.2 Manual
>>> y = np.arange(3, dtype=float) >>> y array([0., 1., 2.]) >>> np.ones_like(y) array([1., 1., 1.])
Find elsewhere
🌐
Reddit
reddit.com › r/learnjava › what is comparable to python pandas and numpy in java?
r/learnjava on Reddit: What is comparable to Python Pandas and Numpy in Java?
October 12, 2020 -

I'm looking to build an application which connects to a SQL Server database, manipulates data pulled from it, reads an excel file, manipulates data inside it and writes a CSV file (to be read by some other application).

I've created a program that does exactly this in Python using pandas and numpy.

What are comparable Java packages/modules?

Side note: I know very little Java and figure this could be a good first project for me.

🌐
Imagej
py.imagej.net › en › latest › 03-Sending-Data-to-Java.html
3 Converting to Java: ij.py.to_java() — PyImageJ documentation
The function ij.py.to_java() is capable of converting common Python and NumPy data types into their Java/ImageJ equivalent. There is one important nuance; converting a NumPy array to Java creates a Java object that points to the NumPy array.
🌐
GitHub
github.com › JosephCottam › Numpy4J
GitHub - JosephCottam/Numpy4J: Interface Java with Numpy. Try to be reasonable. · GitHub
What works: If you make an NPArray (that's the Java class that represents a Numpy array), you can execute max, min, log and array-array multiply. For log and multiply, the resulting NPArray is actually backed by memory that numpy allocated for ...
Starred by 56 users
Forked by 5 users
Languages: Java 53.0% | C 40.1% | Python 6.0% | C++ 0.9%
🌐
JAX Documentation
docs.jax.dev › en › latest › _autosummary › jax.numpy.ones_like.html
jax.numpy.ones_like — JAX documentation
>>> x = jnp.arange(4) >>> jnp.ones_like(x) Array([1, 1, 1, 1], dtype=int32) >>> jnp.ones_like(x, dtype=bool) Array([ True, True, True, True], dtype=bool) >>> jnp.ones_like(x, shape=(2, 3)) Array([[1, 1, 1], [1, 1, 1]], dtype=int32)
🌐
w3resource
w3resource.com › numpy › array-creation › ones_like.php
NumPy: numpy.ones_like() function - w3resource
April 21, 2026 - The numpy.ones_like() function is used to get an array of ones with the same shape and type as an existing array.
🌐
GitHub
github.com › jpype-project › jpype › issues › 1341
Documentation: best way to access numpy arrays from Java without copying · Issue #1341 · jpype-project/jpype · GitHub
February 3, 2026 - – I could not find instructions on how to zero-copy map an existing numpy array to Java; but I'd imagine that a lot of users will be looking for this.
Author: jpype-project
🌐
Medium
hakmesyo.medium.com › ojl-java-and-numpy-python-performance-benchmark-on-massive-matrix-operations-7127345116e4
OJL (Java) and Numpy (Python) performance benchmark on massive matrix operations | by Musa Ataş | Medium
November 6, 2022 - OJL (Java) and Numpy (Python) performance benchmark on massive matrix operations OJL, also known as the Open Jazari Library, https://github.com/hakmesyo/open-jazari-library is a library developed in …