Index
All Classes and Interfaces|All Packages
A
- ActivationFunction - Interface in org.numpy4j.activations
-
Represents an activation function applied to an
NDArray. - Activations - Class in org.numpy4j.activations
-
Collection of common activation functions used in neural networks.
- add(NDArray) - Method in class org.numpy4j.core.NDArray
-
Adds another NDArray to this one element-wise, applying NumPy-style broadcasting if necessary.
- apply(NDArray) - Method in interface org.numpy4j.activations.ActivationFunction
-
Applies the activation function to the given NDArray.
- arange(double, double, double) - Static method in class org.numpy4j.api.Numpy
-
Creates a one-dimensional
NDArraycontaining evenly spaced values within a specified interval. - array(double[], int...) - Static method in class org.numpy4j.api.Numpy
-
Creates a new
NDArrayfrom an existing one-dimensional Java array and a specified shape.
C
- copy(NDArray) - Static method in class org.numpy4j.api.Numpy
-
Creates a deep copy of the given
NDArray.
D
- det(NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Computes the determinant of a square matrix using recursive Laplace expansion.
- divide(NDArray) - Method in class org.numpy4j.core.NDArray
-
Divides this NDArray by another element-wise, applying NumPy-style broadcasting if necessary.
- dot(NDArray) - Method in class org.numpy4j.core.NDArray
-
Computes the matrix dot product between this array and another.
- dot(NDArray, NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Computes the dot product (inner product) of two 1D vectors.
E
- empty(int...) - Static method in class org.numpy4j.api.Numpy
-
Creates a new
NDArrayof the specified shape with uninitialized (random) values. - exp(NDArray) - Static method in class org.numpy4j.api.Numpy
-
Element-wise exponential of all elements in the input NDArray.
- eye(int) - Static method in class org.numpy4j.api.Numpy
-
Creates a two-dimensional identity matrix of size
n × n.
F
- fft(double[], double[]) - Static method in class org.numpy4j.fft.FFT
- FFT - Class in org.numpy4j.fft
- FFT() - Constructor for class org.numpy4j.fft.FFT
- fit(NDArray, NDArray, int, double) - Method in class org.numpy4j.ml.LogisticRegression
-
Trains the model using batch gradient descent.
- flatten(NDArray) - Static method in class org.numpy4j.api.Numpy
-
Flattens the input
NDArrayto a one-dimensional array. - full(double, int...) - Static method in class org.numpy4j.api.Numpy
-
Creates a new
NDArrayof the specified shape filled with a given constant value.
G
- get(int...) - Method in class org.numpy4j.core.NDArray
-
Returns the element at the specified indices.
- getBias() - Method in class org.numpy4j.ml.LogisticRegression
-
Returns the bias term.
- getData() - Method in class org.numpy4j.core.NDArray
-
Returns the data (dimensions) of this NDArray.
- getNdims() - Method in class org.numpy4j.core.NDArray
-
Returns the number of dimensions (like NumPy's ndarray.ndim)
- getRow(int) - Method in class org.numpy4j.core.NDArray
- getShape() - Method in class org.numpy4j.core.NDArray
-
Returns the shape (dimensions) of this NDArray.
- getSize() - Method in class org.numpy4j.core.NDArray
-
Returns the number of elements in the array (like NumPy's ndarray.size)
- getWeights() - Method in class org.numpy4j.ml.LogisticRegression
-
Returns the learned weights.
I
- inv(NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Computes the inverse of a square matrix using Gaussian elimination.
L
- like(double[]) - Method in class org.numpy4j.core.NDArray
-
Creates a new
NDArraywith the same structural metadata (shape, layout) as this array, backed by the provided data buffer. - LinearAlgebra - Class in org.numpy4j.linalg
-
A utility class providing core linear algebra operations on
NDArrayobjects, including vector and matrix computations such as dot products, matrix multiplication, transposition, norms, determinants, inverses, and identity matrix creation. - LinearAlgebra() - Constructor for class org.numpy4j.linalg.LinearAlgebra
- linspace(double, double, int) - Static method in class org.numpy4j.api.Numpy
-
Generates a one-dimensional
NDArrayof evenly spaced numbers over a specified interval. - LogisticRegression - Class in org.numpy4j.ml
-
Binary Logistic Regression implemented using numpy4j NDArray.
- LogisticRegression(int) - Constructor for class org.numpy4j.ml.LogisticRegression
-
Creates a Logistic Regression model.
M
- map(DoubleUnaryOperator) - Method in class org.numpy4j.core.NDArray
-
Applies the given unary function to each element of this NDArray.
- matmul(NDArray, NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Performs matrix multiplication between two 2D matrices:
- mean() - Method in class org.numpy4j.core.NDArray
-
Computes the mean (average) of all elements in the NDArray.
- mean(NDArray) - Static method in class org.numpy4j.api.Numpy
-
Compute the mean (average) of all elements in the input NDArray.
- multiply(NDArray) - Method in class org.numpy4j.core.NDArray
-
Multiplies this NDArray with another element-wise, applying NumPy-style broadcasting if necessary.
N
- NDArray - Class in org.numpy4j.core
-
A lightweight, high-performance Java implementation of a multidimensional array, inspired by Python's NumPy ndarray.
- NDArray(double[], int...) - Constructor for class org.numpy4j.core.NDArray
- NDArray(int...) - Constructor for class org.numpy4j.core.NDArray
- nextGaussian() - Static method in class org.numpy4j.random.RandomUtils
- nextUniform(double, double) - Static method in class org.numpy4j.random.RandomUtils
- norm(NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Computes the Euclidean (L2) norm of a vector:
- Numpy - Class in org.numpy4j.api
- Numpy() - Constructor for class org.numpy4j.api.Numpy
O
- of(double[], int...) - Static method in class org.numpy4j.core.NDArray
- ones(int...) - Static method in class org.numpy4j.api.Numpy
-
Creates a new
NDArrayof the specified shape filled with ones. - org.numpy4j.activations - package org.numpy4j.activations
- org.numpy4j.api - package org.numpy4j.api
- org.numpy4j.core - package org.numpy4j.core
- org.numpy4j.fft - package org.numpy4j.fft
- org.numpy4j.linalg - package org.numpy4j.linalg
- org.numpy4j.ml - package org.numpy4j.ml
- org.numpy4j.random - package org.numpy4j.random
P
- power(int) - Method in class org.numpy4j.core.NDArray
-
Raises each element to the given power.
- predict(NDArray) - Method in class org.numpy4j.ml.LogisticRegression
-
Predicts binary class labels using a threshold of 0.5.
- predictProba(NDArray) - Method in class org.numpy4j.ml.LogisticRegression
-
Computes predicted probabilities using the sigmoid function.
R
- random(int...) - Static method in class org.numpy4j.api.Numpy
-
Generate an NDArray of random values uniformly distributed in [0, 1).
- random(int...) - Static method in class org.numpy4j.core.NDArray
-
Creates an NDArray with the given shape, filled with random values uniformly distributed between 0 (inclusive) and 1 (exclusive).
- RandomUtils - Class in org.numpy4j.random
- RandomUtils() - Constructor for class org.numpy4j.random.RandomUtils
- ravel(NDArray) - Static method in class org.numpy4j.api.Numpy
-
Alias for
Numpy.flatten(NDArray). - relu(NDArray) - Static method in class org.numpy4j.activations.Activations
-
Applies the Rectified Linear Unit (ReLU) activation function.
- reshape(int...) - Method in class org.numpy4j.core.NDArray
-
Returns a new
NDArraywith the same data but a different shape. - reshape(NDArray, int...) - Static method in class org.numpy4j.api.Numpy
-
Reshapes the input
NDArrayto the specified new shape.
S
- set(double, int...) - Method in class org.numpy4j.core.NDArray
-
Sets the element at the specified indices to the given value.
- sigmoid(NDArray) - Static method in class org.numpy4j.activations.Activations
-
Applies the sigmoid (logistic) activation function.
- slice(int[][]) - Method in class org.numpy4j.core.NDArray
-
Extracts a subarray (slice) from this
NDArray, similar tonumpy[:, :]slicing in Python. - softmax(NDArray) - Static method in class org.numpy4j.activations.Activations
-
Applies the softmax activation function.
- subtract(NDArray) - Method in class org.numpy4j.core.NDArray
-
Subtracts another NDArray from this one element-wise, applying NumPy-style broadcasting if necessary.
- sum() - Method in class org.numpy4j.core.NDArray
-
Computes the sum of all elements in the NDArray.
T
- tanh(NDArray) - Static method in class org.numpy4j.activations.Activations
-
Applies the hyperbolic tangent (tanh) activation function.
- toString() - Method in class org.numpy4j.core.NDArray
- transpose(NDArray) - Static method in class org.numpy4j.linalg.LinearAlgebra
-
Returns the transpose of a 2D matrix.
Z
- zeros(int...) - Static method in class org.numpy4j.api.Numpy
-
Creates a new
NDArrayof the specified shape filled with zeros. - zeros(int...) - Static method in class org.numpy4j.core.NDArray
-
Creates an NDArray with the given shape, filled with zeros.
All Classes and Interfaces|All Packages