Package | Description |
---|---|
org.la4j | |
org.la4j.operation | |
org.la4j.operation.ooplace | |
org.la4j.vector | |
org.la4j.vector.sparse |
Modifier and Type | Method and Description |
---|---|
SparseVector |
Vector.toSparseVector()
Converts this vector into a
SparseVector . |
Modifier and Type | Method and Description |
---|---|
abstract R |
MatrixVectorOperation.apply(ColumnMajorSparseMatrix a,
SparseVector b) |
abstract R |
MatrixVectorOperation.apply(DenseMatrix a,
SparseVector b) |
abstract R |
VectorVectorOperation.apply(DenseVector a,
SparseVector b) |
R |
SymmetricVectorVectorOperation.apply(DenseVector a,
SparseVector b) |
R |
CommonVectorVectorOperation.apply(DenseVector a,
SparseVector b) |
abstract R |
MatrixVectorOperation.apply(RowMajorSparseMatrix a,
SparseVector b) |
abstract R |
VectorOperation.apply(SparseVector a) |
R |
CommonVectorOperation.apply(SparseVector a) |
abstract R |
VectorMatrixOperation.apply(SparseVector a,
ColumnMajorSparseMatrix b) |
abstract R |
VectorMatrixOperation.apply(SparseVector a,
DenseMatrix b) |
abstract R |
VectorVectorOperation.apply(SparseVector a,
DenseVector b) |
R |
SymmetricVectorVectorOperation.apply(SparseVector a,
DenseVector b) |
R |
CommonVectorVectorOperation.apply(SparseVector a,
DenseVector b) |
abstract R |
VectorMatrixOperation.apply(SparseVector a,
RowMajorSparseMatrix b) |
abstract R |
VectorVectorOperation.apply(SparseVector a,
SparseVector b) |
R |
CommonVectorVectorOperation.apply(SparseVector a,
SparseVector b) |
abstract R |
SymmetricVectorVectorOperation.applySymmetric(DenseVector a,
SparseVector b) |
VectorOperation<R> |
VectorVectorOperation.partiallyApply(SparseVector a) |
MatrixOperation<R> |
VectorMatrixOperation.partiallyApply(SparseVector a) |
Modifier and Type | Method and Description |
---|---|
Vector |
OoPlaceMatrixByVectorMultiplication.apply(ColumnMajorSparseMatrix a,
SparseVector b) |
Vector |
OoPlaceMatrixByVectorMultiplication.apply(DenseMatrix a,
SparseVector b) |
Vector |
OoPlaceVectorsSubtraction.apply(DenseVector a,
SparseVector b) |
Matrix |
OoPlaceOuterProduct.apply(DenseVector a,
SparseVector b) |
Vector |
OoPlaceMatrixByVectorMultiplication.apply(RowMajorSparseMatrix a,
SparseVector b) |
Vector |
OoPlaceVectorByMatrixMultiplication.apply(SparseVector a,
ColumnMajorSparseMatrix b) |
Vector |
OoPlaceVectorByMatrixMultiplication.apply(SparseVector a,
DenseMatrix b) |
Vector |
OoPlaceVectorsSubtraction.apply(SparseVector a,
DenseVector b) |
Matrix |
OoPlaceOuterProduct.apply(SparseVector a,
DenseVector b) |
Vector |
OoPlaceVectorByMatrixMultiplication.apply(SparseVector a,
RowMajorSparseMatrix b) |
Vector |
OoPlaceVectorsSubtraction.apply(SparseVector a,
SparseVector b) |
Vector |
OoPlaceVectorsAddition.apply(SparseVector a,
SparseVector b) |
Vector |
OoPlaceVectorHadamardProduct.apply(SparseVector a,
SparseVector b) |
Matrix |
OoPlaceOuterProduct.apply(SparseVector a,
SparseVector b) |
Double |
OoPlaceInnerProduct.apply(SparseVector a,
SparseVector b) |
Vector |
OoPlaceVectorsAddition.applySymmetric(DenseVector a,
SparseVector b) |
Vector |
OoPlaceVectorHadamardProduct.applySymmetric(DenseVector a,
SparseVector b) |
Double |
OoPlaceInnerProduct.applySymmetric(DenseVector a,
SparseVector b) |
Modifier and Type | Method and Description |
---|---|
static SparseVector |
SparseVector.fromArray(double[] array)
Creates a new
SparseVector from the given array with
compressing (copying) the underlying array. |
static SparseVector |
SparseVector.fromCollection(Collection<? extends Number> list)
Creates new
SparseVector from collection |
static SparseVector |
SparseVector.fromCSV(String csv)
Parses
SparseVector from the given CSV string. |
static SparseVector |
SparseVector.fromMap(Map<Integer,? extends Number> map,
int length)
Creates new
SparseVector from given index-value map |
static SparseVector |
SparseVector.fromMatrixMarket(String mm)
Parses
SparseVector from the given Matrix Market string. |
static SparseVector |
SparseVector.random(int length,
double density,
Random random)
|
static SparseVector |
SparseVector.zero(int length)
Creates a zero
SparseVector of the given length . |
static SparseVector |
SparseVector.zero(int length,
int capacity)
|
Modifier and Type | Class and Description |
---|---|
class |
CompressedVector
A basic sparse vector implementation using underlying value and index arrays.
|
Copyright © 2015. All rights reserved.