Package | Description |
---|---|
org.la4j | |
org.la4j.vector.sparse |
Modifier and Type | Field and Description |
---|---|
static VectorFactory<CompressedVector> |
Vectors.COMPRESSED |
static VectorFactory<CompressedVector> |
Vectors.SPARSE |
Modifier and Type | Method and Description |
---|---|
static CompressedVector |
CompressedVector.fromArray(double[] array)
Creates a new
CompressedVector from the given array with
compressing (copying) the underlying array. |
static CompressedVector |
CompressedVector.fromBinary(byte[] array)
Decodes
CompressedVector from the given byte array . |
static CompressedVector |
CompressedVector.fromCollection(Collection<? extends Number> list)
Creates new
CompressedVector from collection |
static CompressedVector |
CompressedVector.fromCSV(String csv)
Parses
CompressedVector from the given CSV string. |
static CompressedVector |
CompressedVector.fromMap(Map<Integer,? extends Number> map,
int length)
Creates new
CompressedVector from index-value map |
static CompressedVector |
CompressedVector.fromMatrixMarket(String mm)
Parses
CompressedVector from the given Matrix Market string. |
static CompressedVector |
CompressedVector.random(int length,
double density,
Random random)
|
static CompressedVector |
CompressedVector.zero(int length)
Creates a zero
CompressedVector of the given length . |
static CompressedVector |
CompressedVector.zero(int length,
int capacity)
|
Copyright © 2015. All rights reserved.