public class IntArrays extends Object
| Modifier and Type | Field and Description |
|---|---|
static int[] |
EMPTY_INT_ARRAY |
| Constructor and Description |
|---|
IntArrays() |
| Modifier and Type | Method and Description |
|---|---|
static long |
arrayProduct(int[] shape) |
static long |
arrayProduct(int[] shape,
int from,
int to) |
static int[] |
calcStrides(int[] shape) |
static int[] |
consArray(int a,
int[] as) |
static long[] |
copyIntsToLongs(int[] src) |
static long[] |
copyIntsToLongs(int[] src,
long[] dst) |
static int |
dotProduct(int[] xs,
int[] ys) |
static boolean |
equals(int[] as,
int[] bs) |
static int[] |
rand(int[] shape)
Creates a randomised int[] array, each element in the range [0..max)
where max is the corresponding element in the shape array
|
static int[] |
removeIndex(int[] data,
int index) |
static int[] |
reverse(int[] data) |
public static int[] removeIndex(int[] data,
int index)
public static int[] reverse(int[] data)
public static int[] consArray(int a,
int[] as)
public static long[] copyIntsToLongs(int[] src,
long[] dst)
public static long[] copyIntsToLongs(int[] src)
public static long arrayProduct(int[] shape)
public static long arrayProduct(int[] shape,
int from,
int to)
public static final int[] calcStrides(int[] shape)
public static boolean equals(int[] as,
int[] bs)
public static int[] rand(int[] shape)
shape - public static int dotProduct(int[] xs,
int[] ys)
Copyright © 2013. All Rights Reserved.