Package | Description |
---|---|
org.apache.flink.ml.common.linalg | |
org.apache.flink.ml.common.statistics.basicstatistic |
Modifier and Type | Method and Description |
---|---|
DenseMatrix |
DenseMatrix.clone()
Clone the Matrix object.
|
static DenseMatrix |
DenseMatrix.eye(int n)
Create an identity matrix.
|
static DenseMatrix |
DenseMatrix.eye(int m,
int n)
Create a m * n identity matrix.
|
DenseMatrix |
DenseMatrix.getSubMatrix(int m0,
int m1,
int n0,
int n1)
Get sub matrix.
|
DenseMatrix |
DenseMatrix.minus(DenseMatrix mat)
Create a new matrix by subtracting another matrix.
|
DenseMatrix |
DenseMatrix.multiplies(DenseMatrix mat)
Multiply with another matrix.
|
static DenseMatrix |
DenseMatrix.ones(int m,
int n)
Create a matrix with all elements set to 1.
|
DenseMatrix |
SparseVector.outer() |
abstract DenseMatrix |
Vector.outer()
Compute the outer product with itself.
|
DenseMatrix |
DenseVector.outer() |
DenseMatrix |
DenseVector.outer(DenseVector other)
Compute the outer product with another vector.
|
DenseMatrix |
SparseVector.outer(SparseVector other)
Compute the outer product with another vector.
|
DenseMatrix |
DenseMatrix.plus(DenseMatrix mat)
Create a new matrix by plussing another matrix.
|
DenseMatrix |
DenseMatrix.plus(double alpha)
Create a new matrix by plussing a constant.
|
static DenseMatrix |
DenseMatrix.rand(int m,
int n)
Create a random matrix.
|
static DenseMatrix |
DenseMatrix.randSymmetric(int n)
Create a random symmetric matrix.
|
DenseMatrix |
DenseMatrix.scale(double v)
Scale the vector by value "v" and create a new matrix to store the result.
|
DenseMatrix |
DenseMatrix.selectRows(int[] rows)
Create a new matrix by selecting some of the rows.
|
DenseMatrix |
DenseMatrix.transpose()
Create a new matrix by transposing current matrix.
|
static DenseMatrix |
DenseMatrix.zeros(int m,
int n)
Create a zero matrix.
|
Modifier and Type | Method and Description |
---|---|
static void |
MatVecOp.apply(DenseMatrix x1,
DenseMatrix x2,
DenseMatrix y,
java.util.function.BiFunction<Double,Double,Double> func)
y = func(x1, x2).
|
static void |
MatVecOp.apply(DenseMatrix x,
DenseMatrix y,
java.util.function.Function<Double,Double> func)
y = func(x).
|
static double |
MatVecOp.applySum(DenseMatrix x1,
DenseMatrix x2,
java.util.function.BiFunction<Double,Double,Double> func)
\sum_ij func(x1_ij, x2_ij) .
|
static void |
BLAS.axpy(double a,
DenseMatrix x,
DenseMatrix y)
y += a * x .
|
static void |
BLAS.gemm(double alpha,
DenseMatrix matA,
boolean transA,
DenseMatrix matB,
boolean transB,
double beta,
DenseMatrix matC)
C := alpha * A * B + beta * C .
|
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 .
|
DenseMatrix |
DenseMatrix.minus(DenseMatrix mat)
Create a new matrix by subtracting another matrix.
|
void |
DenseMatrix.minusEquals(DenseMatrix mat)
Minus with another vector.
|
DenseMatrix |
DenseMatrix.multiplies(DenseMatrix mat)
Multiply with another matrix.
|
DenseMatrix |
DenseMatrix.plus(DenseMatrix mat)
Create a new matrix by plussing another matrix.
|
void |
DenseMatrix.plusEquals(DenseMatrix mat)
Plus with another matrix.
|
static void |
BLAS.scal(double a,
DenseMatrix x)
x = x * a .
|
void |
DenseMatrix.setSubMatrix(DenseMatrix sub,
int m0,
int m1,
int n0,
int n1)
Set part of the matrix values from the values of another matrix.
|
Constructor and Description |
---|
MultivariateGaussian(DenseVector mean,
DenseMatrix cov)
The constructor.
|
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.