Package | Description |
---|---|
org.apache.flink.ml.common.linalg | |
org.apache.flink.ml.common.utils |
Modifier and Type | Method and Description |
---|---|
SparseVector |
SparseVector.append(double d) |
static SparseVector |
MatVecOp.apply(SparseVector x1,
SparseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
Create a new
SparseVector by element wise operation between two SparseVector s. |
SparseVector |
SparseVector.clone() |
static SparseVector |
VectorUtil.parseSparse(String str)
Parse the sparse vector from a formatted string.
|
SparseVector |
SparseVector.prefix(double d) |
SparseVector |
SparseVector.scale(double d) |
SparseVector |
SparseVector.slice(int[] indices) |
Modifier and Type | Method and Description |
---|---|
static SparseVector |
MatVecOp.apply(SparseVector x1,
SparseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
Create a new
SparseVector by element wise operation between two SparseVector s. |
static double |
MatVecOp.applySum(DenseVector x1,
SparseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
\sum_i func(x1_i, x2_i) .
|
static double |
MatVecOp.applySum(SparseVector x1,
DenseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
\sum_i func(x1_i, x2_i) .
|
static double |
MatVecOp.applySum(SparseVector x1,
SparseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
\sum_i func(x1_i, x2_i) .
|
static double |
BLAS.asum(SparseVector x)
\sum_i |x_i| .
|
static void |
BLAS.axpy(double a,
SparseVector x,
DenseVector y)
y += a * x .
|
static void |
BLAS.gemv(double alpha,
DenseMatrix matA,
boolean transA,
SparseVector x,
double beta,
DenseVector y)
y := alpha * A * x + beta * y .
|
DenseVector |
DenseMatrix.multiplies(SparseVector x)
Multiply with a sparse vector.
|
DenseMatrix |
SparseVector.outer(SparseVector other)
Compute the outer product with another vector.
|
static void |
BLAS.scal(double a,
SparseVector x)
x = x * a .
|
static String |
VectorUtil.toString(SparseVector sparseVector)
Serialize the SparseVector to string.
|
Modifier and Type | Field and Description |
---|---|
static TypeInformation<SparseVector> |
VectorTypes.SPARSE_VECTOR
SparseVector type information. |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.