Package | Description |
---|---|
org.apache.flink.ml.common.linalg | |
org.apache.flink.ml.common.statistics.basicstatistic | |
org.apache.flink.ml.common.utils |
Modifier and Type | Method and Description |
---|---|
DenseVector |
DenseVector.append(double d) |
DenseVector |
DenseVector.clone() |
DenseVector |
DenseVector.minus(Vector other) |
DenseVector |
DenseMatrix.multiplies(DenseVector x)
Multiply with a dense vector.
|
DenseVector |
DenseMatrix.multiplies(SparseVector x)
Multiply with a sparse vector.
|
static DenseVector |
DenseVector.ones(int n)
Create a dense vector with all elements one.
|
static DenseVector |
VectorUtil.parseDense(String str)
Parse the dense vector from a formatted string.
|
DenseVector |
DenseVector.plus(Vector other) |
DenseVector |
DenseVector.prefix(double d) |
static DenseVector |
DenseVector.rand(int n)
Create a dense vector with random values uniformly distributed in the range of [0.0, 1.0].
|
DenseVector |
DenseVector.scale(double d) |
DenseVector |
DenseVector.slice(int[] indices) |
DenseVector |
SparseVector.toDenseVector()
Convert to a dense vector.
|
static DenseVector |
DenseVector.zeros(int n)
Create a dense vector with all elements zero.
|
Modifier and Type | Method and Description |
---|---|
static void |
MatVecOp.apply(DenseVector x1,
DenseVector x2,
DenseVector y,
java.util.function.BiFunction<Double,Double,Double> func)
y = func(x1, x2).
|
static void |
MatVecOp.apply(DenseVector x,
DenseVector y,
java.util.function.Function<Double,Double> func)
y = func(x).
|
static double |
MatVecOp.applySum(DenseVector x1,
DenseVector x2,
java.util.function.BiFunction<Double,Double,Double> func)
\sum_i func(x1_i, x2_i) .
|
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 |
BLAS.asum(DenseVector x)
\sum_i |x_i| .
|
static void |
BLAS.axpy(double a,
DenseVector x,
DenseVector y)
y += a * x .
|
static void |
BLAS.axpy(double a,
SparseVector x,
DenseVector y)
y += a * x .
|
static double |
BLAS.dot(DenseVector x,
DenseVector y)
x \cdot y .
|
static void |
BLAS.gemv(double alpha,
DenseMatrix matA,
boolean transA,
DenseVector x,
double beta,
DenseVector y)
y := alpha * A * x + beta * y .
|
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(DenseVector x)
Multiply with a dense vector.
|
DenseMatrix |
DenseVector.outer(DenseVector other)
Compute the outer product with another vector.
|
static void |
BLAS.scal(double a,
DenseVector x)
x = x * a .
|
void |
DenseVector.setEqual(DenseVector other)
Set the data of the vector the same as those of another vector.
|
static String |
VectorUtil.toString(DenseVector denseVector)
Serialize the DenseVector to String.
|
Constructor and Description |
---|
MultivariateGaussian(DenseVector mean,
DenseMatrix cov)
The constructor.
|
Modifier and Type | Field and Description |
---|---|
static TypeInformation<DenseVector> |
VectorTypes.DENSE_VECTOR
DenseVector type information. |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.