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 double |
asum(int n,
double[] x,
int offset)
\sum_i |x_i| .
|
static double |
asum(SparseVector x)
\sum_i |x_i| .
|
static void |
axpy(double a,
DenseMatrix x,
DenseMatrix y)
y += a * x .
|
static void |
axpy(double a,
DenseVector x,
DenseVector y)
y += a * x .
|
static void |
axpy(double a,
double[] x,
double[] y)
y += a * x .
|
static void |
axpy(double a,
SparseVector x,
DenseVector y)
y += a * x .
|
static void |
axpy(int n,
double a,
double[] x,
int xOffset,
double[] y,
int yOffset)
y[yOffset:yOffset+n] += a * x[xOffset:xOffset+n] .
|
static double |
dot(DenseVector x,
DenseVector y)
x \cdot y .
|
static double |
dot(double[] x,
double[] y)
x \cdot y .
|
static void |
gemm(double alpha,
DenseMatrix matA,
boolean transA,
DenseMatrix matB,
boolean transB,
double beta,
DenseMatrix matC)
C := alpha * A * B + beta * C .
|
static void |
gemv(double alpha,
DenseMatrix matA,
boolean transA,
DenseVector x,
double beta,
DenseVector y)
y := alpha * A * x + beta * y .
|
static void |
gemv(double alpha,
DenseMatrix matA,
boolean transA,
SparseVector x,
double beta,
DenseVector y)
y := alpha * A * x + beta * y .
|
static void |
scal(double a,
DenseMatrix x)
x = x * a .
|
static void |
scal(double a,
DenseVector x)
x = x * a .
|
static void |
scal(double a,
double[] x)
x = x * a .
|
static void |
scal(double a,
SparseVector x)
x = x * a .
|
public static double asum(int n, double[] x, int offset)
public static double asum(DenseVector x)
public static double asum(SparseVector x)
public static void axpy(double a, double[] x, double[] y)
public static void axpy(double a, DenseVector x, DenseVector y)
public static void axpy(double a, SparseVector x, DenseVector y)
public static void axpy(double a, DenseMatrix x, DenseMatrix y)
public static void axpy(int n, double a, double[] x, int xOffset, double[] y, int yOffset)
public static double dot(double[] x, double[] y)
public static double dot(DenseVector x, DenseVector y)
public static void scal(double a, double[] x)
public static void scal(double a, DenseVector x)
public static void scal(double a, SparseVector x)
public static void scal(double a, DenseMatrix x)
public static void gemm(double alpha, DenseMatrix matA, boolean transA, DenseMatrix matB, boolean transB, double beta, DenseMatrix matC)
public static void gemv(double alpha, DenseMatrix matA, boolean transA, DenseVector x, double beta, DenseVector y)
public static void gemv(double alpha, DenseMatrix matA, boolean transA, SparseVector x, double beta, DenseVector y)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.