| 程序包 | 说明 |
|---|---|
| org.apache.flink.ml.common.linalg | |
| org.apache.flink.ml.common.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
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 SparseVectors. y = func(x1, x2). |
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 SparseVectors. y = func(x1, x2). |
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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.flink.api.common.typeinfo.TypeInformation<SparseVector> |
VectorTypes.SPARSE_VECTOR
SparseVector type information. |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.