Index
All Classes|All Packages
A
- AbstractMDArray - Class in com.linkedin.dagli.math.mdarray
-
Base class for
MDArrays. - AbstractMDArray(long[]) - Constructor for class com.linkedin.dagli.math.mdarray.AbstractMDArray
-
Creates a new instance with the specified shape.
- asVector() - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Returns a flattened, vectorized representation of this
MDArray. - asVector() - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
C
- checkValidIndices(long[], long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Checks that the provided indices are valid in an array of a given shape, throwing an
IllegalArgumentExceptionif they are not. - close() - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Releases resources associated with this
MDArray, including those of any underlying data structures wrapped by this instance. - com.linkedin.dagli.math.mdarray - package com.linkedin.dagli.math.mdarray
- concatenate(long[], long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Concatenates two arrays of longs; this is primarily useful for manipulating indices and shapes.
E
- elementCount(long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Gets the number of values in an
MDArraywith the specified shape.
G
- getAsDouble(long) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the component at the specified linear offset.
- getAsDouble(long) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- getAsDouble(long...) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets a component at the specified indices.
- getAsDouble(long...) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- getAsDoubleUnsafe(long) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the component at the specified linear offset, possibly without checking that it is in-bounds for the MDArray.
- getAsDoubleUnsafe(long) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- getAsLong(long) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the component at the specified linear offset.
- getAsLong(long) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- getAsLong(long...) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets a component at the specified indices.
- getAsLong(long...) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- getAsLongUnsafe(long) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the component at the specified linear offset, possibly without checking that it is in-bounds for the MDArray.
- getAsLongUnsafe(long) - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
I
- indicesToOffset(long[], long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Calculates the canonical offset of an element located at a given array of indices.
M
- MDArray - Interface in com.linkedin.dagli.math.mdarray
-
A simple representation of a multidimensional array (sometimes colloquially known as a "tensor").
- MDArrays - Class in com.linkedin.dagli.math.mdarray
-
Static utility methods for
MDArrays.
O
- offsetToIndices(long, long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Calculates the indices of an element in an
MDArraygiven its offset.
S
- shape() - Method in class com.linkedin.dagli.math.mdarray.AbstractMDArray
- shape() - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the shape (dimensions) of this
MDArray, expressed as a long[]. - subarrayAt(long...) - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Returns an
MDArrayrepresenting a subarray of this instance at the specified indices.
T
- toString() - Method in class com.linkedin.dagli.math.mdarray.AbstractMDArray
V
- validIndices(long[], long[]) - Static method in class com.linkedin.dagli.math.mdarray.MDArrays
-
Checks if the provided indices fall within a shape.
- valueType() - Method in interface com.linkedin.dagli.math.mdarray.MDArray
-
Gets the smallest primitive number type capable of losslessly holding the values stored in this array.
- valueType() - Method in class com.linkedin.dagli.math.mdarray.VectorAsMDArray
- VectorAsMDArray - Class in com.linkedin.dagli.math.mdarray
-
A
MDArraybacked by aVector. - VectorAsMDArray(Vector, long...) - Constructor for class com.linkedin.dagli.math.mdarray.VectorAsMDArray
-
Creates a new instance backed by the specified vector.
_
- _shape - Variable in class com.linkedin.dagli.math.mdarray.AbstractMDArray
All Classes|All Packages