public class Vectorz extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
TEST_EPSILON
Constant tolerance used for testing double values
|
| Constructor and Description |
|---|
Vectorz() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(AVector source,
int srcOffset,
AVector dest,
int destOffset,
int length) |
static AVector |
create(double... data) |
static AVector |
create(List<Object> d) |
static AVector |
createLength(int length)
Returns a vector filled with zeros of the specified length.
|
static AVector |
createMutableVector(AVector t) |
static AVector |
createSameSize(AVector v) |
static AVector |
createUniformRandomVector(int dimensions) |
static AVector |
createZeroVector(int length) |
static AVector |
deepCopy(AVector vector) |
static AVector |
immutableZeroVector(int dimensions)
Returns an immutable vector of zeros
|
static AVector |
join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
static AVector |
join(List<AVector> vectors) |
static AVector |
parse(String ednString)
Parse a vector in edn format
|
static AVector |
wrap(double[] data) |
static AVector |
wrap(double[][] data) |
public static final double TEST_EPSILON
public static AVector create(double... data)
public static AVector join(AVector first, AVector second)
first - second - public static AVector createZeroVector(int length)
public static AVector wrap(double[] data)
public static AVector wrap(double[][] data)
public static AVector createLength(int length)
length - public static void copy(AVector source, int srcOffset, AVector dest, int destOffset, int length)
public static AVector createUniformRandomVector(int dimensions)
public static AVector immutableZeroVector(int dimensions)
dimensions - public static AVector parse(String ednString)
ednString - Copyright © 2012. All Rights Reserved.