| Package | Description |
|---|---|
| org.tensorflow.ndarray | |
| org.tensorflow.ndarray.impl | |
| org.tensorflow.ndarray.impl.dense | |
| org.tensorflow.ndarray.impl.sequence | |
| org.tensorflow.ndarray.index |
| Modifier and Type | Interface and Description |
|---|---|
interface |
NdArraySequence<T extends NdArray<?>>
A sequence of elements of an N-dimensional array.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanNdArray
An
NdArray of booleans. |
interface |
ByteNdArray
An
NdArray of bytes. |
interface |
DoubleNdArray
An
NdArray of doubles. |
interface |
FloatNdArray
An
NdArray of floats. |
interface |
IntNdArray
An
NdArray of integers. |
interface |
LongNdArray
An
NdArray of longs. |
interface |
ShortNdArray
An
NdArray of shorts. |
| Modifier and Type | Method and Description |
|---|---|
NdArray<T> |
NdArray.copyTo(NdArray<T> dst)
Copy the content of this array to the destination array.
|
NdArray<T> |
NdArray.get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[] array)
Copy an array of objects in a new
NdArray |
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[][] array)
Copy a 2-dimensional array of objects in a new
NdArray |
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[][][] array)
Copy a 3-dimensional array of objects in a new
NdArray |
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[][][][] array)
Copy a 4-dimensional array of objects in a new
NdArray |
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[][][][][] array)
Copy a 5-dimensional array of objects in a new
NdArray |
static <T> NdArray<T> |
StdArrays.ndCopyOf(T[][][][][][] array)
Copy a 6-dimensional array of objects in a new
NdArray |
static <T> NdArray<T> |
NdArrays.ofObjects(Class<T> clazz,
Shape shape)
Creates an N-dimensional array of the given shape.
|
NdArray<T> |
NdArray.read(DataBuffer<T> dst)
Read the content of this N-dimensional array into the destination buffer.
|
static <T> NdArray<T> |
NdArrays.scalarOfObject(T value)
Creates scalar (rank 0) initialized with the given value.
|
NdArray<T> |
NdArray.set(NdArray<T> src,
long... coordinates)
Assigns the value of the N-dimensional element found at the given coordinates.
|
NdArray<T> |
NdArray.setObject(T value,
long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
NdArray<T> |
NdArray.slice(Index... indices)
Creates a multi-dimensional view (or slice) of this array by mapping one or more dimensions
to the given index selectors.
|
static <T> NdArray<T> |
NdArrays.vectorOfObjects(T... values)
Creates a vector (rank 1) initialized with the given values.
|
static <T> NdArray<T> |
NdArrays.wrap(Shape shape,
DataBuffer<T> buffer)
Wraps a buffer in an N-dimensional array of a given shape.
|
NdArray<T> |
NdArray.write(DataBuffer<T> src)
Write the content of this N-dimensional array from the source buffer.
|
| Modifier and Type | Method and Description |
|---|---|
NdArraySequence<? extends NdArray<T>> |
NdArray.elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
NdArraySequence<? extends NdArray<T>> |
NdArray.scalars()
Returns a sequence of all scalars in this array.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
StdArrays.array1dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 1-dimension standard array of objects |
static <T> T[][] |
StdArrays.array2dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 2-dimension standard array of objects |
static <T> T[][][] |
StdArrays.array3dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 3-dimension standard array of objects |
static <T> T[][][][] |
StdArrays.array4dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 4-dimension standard array of objects |
static <T> T[][][][][] |
StdArrays.array5dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 5-dimension standard array of objects |
static <T> T[][][][][][] |
StdArrays.array6dCopyOf(NdArray<T> ndArray,
Class<T> objectType)
Copy a
NdArray<T> in a new 6-dimension standard array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[] dst)
Copy a
NdArray to an array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[][] dst)
Copy a
NdArray to a 2-dimensional array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[][][] dst)
Copy a
NdArray to a 3-dimensional array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[][][][] dst)
Copy a
NdArray to a 4-dimensional array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[][][][][] dst)
Copy a
NdArray to a 5-dimensional array of objects |
static <T> void |
StdArrays.copyFrom(NdArray<T> src,
T[][][][][][] dst)
Copy a
NdArray to a 6-dimensional array of objects |
BooleanNdArray |
BooleanNdArray.copyTo(NdArray<Boolean> dst) |
ByteNdArray |
ByteNdArray.copyTo(NdArray<Byte> dst) |
DoubleNdArray |
DoubleNdArray.copyTo(NdArray<Double> dst) |
FloatNdArray |
FloatNdArray.copyTo(NdArray<Float> dst) |
IntNdArray |
IntNdArray.copyTo(NdArray<Integer> dst) |
LongNdArray |
LongNdArray.copyTo(NdArray<Long> dst) |
ShortNdArray |
ShortNdArray.copyTo(NdArray<Short> dst) |
NdArray<T> |
NdArray.copyTo(NdArray<T> dst)
Copy the content of this array to the destination array.
|
static <T> void |
StdArrays.copyTo(T[][][][][][] src,
NdArray<T> dst)
Copy a 6-dimensional array of objects into the
dst NdArray |
static <T> void |
StdArrays.copyTo(T[][][][][] src,
NdArray<T> dst)
Copy a 5-dimensional array of objects into the
dst NdArray |
static <T> void |
StdArrays.copyTo(T[][][][] src,
NdArray<T> dst)
Copy a 4-dimensional array of objects into the
dst NdArray |
static <T> void |
StdArrays.copyTo(T[][][] src,
NdArray<T> dst)
Copy a 3-dimensional array of objects into the
dst NdArray |
static <T> void |
StdArrays.copyTo(T[][] src,
NdArray<T> dst)
Copy a 2-dimensional array of objects into the
dst NdArray |
static <T> void |
StdArrays.copyTo(T[] src,
NdArray<T> dst)
Copy an array of objects into the
dst NdArray |
BooleanNdArray |
BooleanNdArray.set(NdArray<Boolean> src,
long... coordinates) |
ByteNdArray |
ByteNdArray.set(NdArray<Byte> src,
long... coordinates) |
DoubleNdArray |
DoubleNdArray.set(NdArray<Double> src,
long... coordinates) |
FloatNdArray |
FloatNdArray.set(NdArray<Float> src,
long... coordinates) |
IntNdArray |
IntNdArray.set(NdArray<Integer> src,
long... coordinates) |
LongNdArray |
LongNdArray.set(NdArray<Long> src,
long... coordinates) |
ShortNdArray |
ShortNdArray.set(NdArray<Short> src,
long... coordinates) |
NdArray<T> |
NdArray.set(NdArray<T> src,
long... coordinates)
Assigns the value of the N-dimensional element found at the given coordinates.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNdArray<T,U extends NdArray<T>> |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNdArray<T,U extends NdArray<T>> |
| Modifier and Type | Method and Description |
|---|---|
static void |
Validator.copyToNdArrayArgs(NdArray<?> ndArray,
NdArray<?> otherNdArray) |
static void |
Validator.copyToNdArrayArgs(NdArray<?> ndArray,
NdArray<?> otherNdArray) |
static void |
Validator.readToBufferArgs(NdArray<?> ndArray,
DataBuffer<?> dst) |
protected void |
AbstractNdArray.slowCopyTo(NdArray<T> array) |
protected boolean |
AbstractNdArray.slowEquals(NdArray<?> array) |
static void |
Validator.writeFromBufferArgs(NdArray<?> ndArray,
DataBuffer<?> src) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDenseNdArray<T,U extends NdArray<T>> |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDenseNdArray<T,U extends NdArray<T>> |
class |
BooleanDenseNdArray |
class |
ByteDenseNdArray |
class |
DenseNdArray<T> |
class |
DoubleDenseNdArray |
class |
FloatDenseNdArray |
class |
IntDenseNdArray |
class |
LongDenseNdArray |
class |
ShortDenseNdArray |
| Modifier and Type | Method and Description |
|---|---|
NdArray<T> |
DenseNdArray.copyTo(NdArray<T> dst) |
static <T> NdArray<T> |
DenseNdArray.wrap(DataBuffer<T> buffer,
Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
BooleanNdArray |
BooleanDenseNdArray.copyTo(NdArray<Boolean> dst) |
ByteNdArray |
ByteDenseNdArray.copyTo(NdArray<Byte> dst) |
DoubleNdArray |
DoubleDenseNdArray.copyTo(NdArray<Double> dst) |
FloatNdArray |
FloatDenseNdArray.copyTo(NdArray<Float> dst) |
IntNdArray |
IntDenseNdArray.copyTo(NdArray<Integer> dst) |
LongNdArray |
LongDenseNdArray.copyTo(NdArray<Long> dst) |
ShortNdArray |
ShortDenseNdArray.copyTo(NdArray<Short> dst) |
NdArray<T> |
DenseNdArray.copyTo(NdArray<T> dst) |
U |
AbstractDenseNdArray.set(NdArray<T> src,
long... coordinates) |
protected void |
AbstractDenseNdArray.slowCopyTo(NdArray<T> array) |
| Modifier and Type | Class and Description |
|---|---|
class |
FastElementSequence<T,U extends NdArray<T>>
A sequence recycling the same
NdArray instance when iterating its elements |
class |
SingleElementSequence<T,U extends NdArray<T>>
A sequence of one single element
|
class |
SlicingElementSequence<T,U extends NdArray<T>>
A sequence creating a new
NdArray instance (slice) for each element of an iteration |
| Modifier and Type | Method and Description |
|---|---|
static Index |
Indices.at(NdArray<? extends Number> coord)
A coordinate that selects a specific element on a given dimension.
|
static Index |
Indices.seq(NdArray<? extends Number> coords)
An index that returns only specific elements on a given dimension.
|
Copyright © 2015–2020. All rights reserved.