Package | Description |
---|---|
org.la4j | |
org.la4j.vector.dense |
Modifier and Type | Field and Description |
---|---|
static VectorFactory<BasicVector> |
Vectors.BASIC |
static VectorFactory<BasicVector> |
Vectors.DENSE |
Modifier and Type | Method and Description |
---|---|
static BasicVector |
BasicVector.constant(int length,
double value)
|
static BasicVector |
BasicVector.fromArray(double[] array)
Creates a new
BasicVector from the given array w/o
copying the underlying array. |
static BasicVector |
BasicVector.fromBinary(byte[] array)
Decodes
BasicVector from the given byte array . |
static BasicVector |
BasicVector.fromCollection(Collection<? extends Number> list)
Creates new
BasicVector from |
static BasicVector |
BasicVector.fromCSV(String csv)
Parses
BasicVector from the given CSV string. |
static BasicVector |
BasicVector.fromMap(Map<Integer,? extends Number> map,
int length)
Creates new
BasicVector from index-value map |
static BasicVector |
BasicVector.fromMatrixMarket(String mm)
Parses
BasicVector from the given Matrix Market string. |
static BasicVector |
BasicVector.random(int length,
Random random)
|
static BasicVector |
BasicVector.unit(int length)
Creates an unit
BasicVector of the given length . |
static BasicVector |
BasicVector.zero(int length)
Creates a zero
BasicVector of the given length . |
Copyright © 2015. All rights reserved.