public class BLAS extends Object
Constructor and Description |
---|
BLAS() |
Modifier and Type | Method and Description |
---|---|
static double |
asum(DenseVector x)
\sum_i |x_i| .
|
static void |
axpy(double a,
DenseVector x,
DenseVector y)
y += a * x .
|
static double |
dot(DenseVector x,
DenseVector y)
x \cdot y .
|
static void |
gemv(double alpha,
DenseMatrix matrix,
boolean transMatrix,
DenseVector x,
double beta,
DenseVector y)
y = alpha * matrix * x + beta * y or y = alpha * (matrix^T) * x + beta * y.
|
static double |
norm2(DenseVector x)
\sqrt(\sum_i x_i * x_i) .
|
static void |
scal(double a,
DenseVector x)
x = x * a .
|
public static double asum(DenseVector x)
public static void axpy(double a, DenseVector x, DenseVector y)
public static double dot(DenseVector x, DenseVector y)
public static double norm2(DenseVector x)
public static void scal(double a, DenseVector x)
public static void gemv(double alpha, DenseMatrix matrix, boolean transMatrix, DenseVector x, double beta, DenseVector y)
alpha
- The alpha value.matrix
- Dense matrix with size m x n.transMatrix
- Whether transposes matrix before multiply.x
- Dense vector with size n.beta
- The beta value.y
- Dense vector with size m.Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.