public class Arrayz extends Object
| Constructor and Description |
|---|
Arrayz() |
| Modifier and Type | Method and Description |
|---|---|
static INDArray |
create(INDArray a) |
static INDArray |
create(Object... data)
Creates an array using the given data as slices.
|
static INDArray |
create(Object object)
Creates an array from the given data
Handles double arrays, INDArray instances, and lists
|
static INDArray |
createFromVector(AVector a,
int... shape)
Creates a new array using the elements in the specified vector.
|
static boolean |
isPackedLayout(double[] data,
int offset,
int[] shape,
int[] strides) |
static boolean |
isPackedStrides(int[] shape,
int[] strides)
Checks if the given set of strides represents a fully packed, row major layout for the given shape
|
static INDArray |
load(Reader reader) |
static INDArray |
newArray(int... shape)
Create a new array instance with the given shape.
|
static INDArray |
parse(String ednString)
Parse an array from a String.
|
static INDArray |
wrap(double[] data,
int[] shape)
Creates an INDArray instance wrapping the given double data, with the provided shape.
|
static INDArray |
wrapStrided(double[] data,
int offset,
int[] shape,
int[] strides) |
public static INDArray create(Object object)
object - public static INDArray newArray(int... shape)
shape - public static INDArray create(Object... data)
data - public static INDArray wrap(double[] data, int[] shape)
data - shape - public static INDArray createFromVector(AVector a, int... shape)
data - rows - columns - public static INDArray parse(String ednString)
ednString - public static INDArray wrapStrided(double[] data, int offset, int[] shape, int[] strides)
public static boolean isPackedLayout(double[] data,
int offset,
int[] shape,
int[] strides)
public static boolean isPackedStrides(int[] shape,
int[] strides)
shape - strides - Copyright © 2013. All Rights Reserved.