public class SimpleBlas extends Object
Constructor and Description |
---|
SimpleBlas() |
Modifier and Type | Method and Description |
---|---|
static double |
asum(ComplexDoubleMatrix x) |
static float |
asum(ComplexFloatMatrix x) |
static double |
asum(DoubleMatrix x)
Compute || x ||_1 (1-norm, sum of absolute values)
|
static float |
asum(FloatMatrix x)
Compute || x ||_1 (1-norm, sum of absolute values)
|
static ComplexDoubleMatrix |
axpy(ComplexDouble da,
ComplexDoubleMatrix dx,
ComplexDoubleMatrix dy) |
static ComplexFloatMatrix |
axpy(ComplexFloat da,
ComplexFloatMatrix dx,
ComplexFloatMatrix dy) |
static DoubleMatrix |
axpy(double da,
DoubleMatrix dx,
DoubleMatrix dy)
Compute y <- alpha * x + y (elementwise addition)
|
static FloatMatrix |
axpy(float da,
FloatMatrix dx,
FloatMatrix dy)
Compute y <- alpha * x + y (elementwise addition)
|
static ComplexDoubleMatrix |
copy(ComplexDoubleMatrix x,
ComplexDoubleMatrix y) |
static ComplexFloatMatrix |
copy(ComplexFloatMatrix x,
ComplexFloatMatrix y) |
static DoubleMatrix |
copy(DoubleMatrix x,
DoubleMatrix y)
Compute y <- x (copy a matrix)
|
static FloatMatrix |
copy(FloatMatrix x,
FloatMatrix y)
Compute y <- x (copy a matrix)
|
static double |
dot(DoubleMatrix x,
DoubleMatrix y)
Compute x^T * y (dot product)
|
static float |
dot(FloatMatrix x,
FloatMatrix y)
Compute x^T * y (dot product)
|
static ComplexDouble |
dotc(ComplexDoubleMatrix x,
ComplexDoubleMatrix y)
Compute x^T * y (dot product)
|
static ComplexFloat |
dotc(ComplexFloatMatrix x,
ComplexFloatMatrix y)
Compute x^T * y (dot product)
|
static ComplexDouble |
dotu(ComplexDoubleMatrix x,
ComplexDoubleMatrix y)
Compute x^T * y (dot product)
|
static ComplexFloat |
dotu(ComplexFloatMatrix x,
ComplexFloatMatrix y)
Compute x^T * y (dot product)
|
static int |
geev(char jobvl,
char jobvr,
DoubleMatrix A,
DoubleMatrix WR,
DoubleMatrix WI,
DoubleMatrix VL,
DoubleMatrix VR) |
static int |
geev(char jobvl,
char jobvr,
FloatMatrix A,
FloatMatrix WR,
FloatMatrix WI,
FloatMatrix VL,
FloatMatrix VR) |
static void |
gelsd(DoubleMatrix A,
DoubleMatrix B)
Generalized Least Squares via *GELSD.
|
static void |
gelsd(FloatMatrix A,
FloatMatrix B)
Generalized Least Squares via *GELSD.
|
static ComplexDoubleMatrix |
gemm(ComplexDouble alpha,
ComplexDoubleMatrix a,
ComplexDoubleMatrix b,
ComplexDouble beta,
ComplexDoubleMatrix c) |
static ComplexFloatMatrix |
gemm(ComplexFloat alpha,
ComplexFloatMatrix a,
ComplexFloatMatrix b,
ComplexFloat beta,
ComplexFloatMatrix c) |
static DoubleMatrix |
gemm(double alpha,
DoubleMatrix a,
DoubleMatrix b,
double beta,
DoubleMatrix c)
Compute c <- a*b + beta * c (general matrix matrix
multiplication)
|
static FloatMatrix |
gemm(float alpha,
FloatMatrix a,
FloatMatrix b,
float beta,
FloatMatrix c)
Compute c <- a*b + beta * c (general matrix matrix
multiplication)
|
static DoubleMatrix |
gemv(double alpha,
DoubleMatrix a,
DoubleMatrix x,
double beta,
DoubleMatrix y)
Compute y <- alpha*op(a)*x + beta * y (general matrix vector
multiplication)
|
static FloatMatrix |
gemv(float alpha,
FloatMatrix a,
FloatMatrix x,
float beta,
FloatMatrix y)
Compute y <- alpha*op(a)*x + beta * y (general matrix vector
multiplication)
|
static void |
geqrf(DoubleMatrix A,
DoubleMatrix tau) |
static void |
geqrf(FloatMatrix A,
FloatMatrix tau) |
static DoubleMatrix |
ger(double alpha,
DoubleMatrix x,
DoubleMatrix y,
DoubleMatrix a)
Compute A <- alpha * x * y^T + A (general rank-1 update)
|
static FloatMatrix |
ger(float alpha,
FloatMatrix x,
FloatMatrix y,
FloatMatrix a)
Compute A <- alpha * x * y^T + A (general rank-1 update)
|
static ComplexDoubleMatrix |
gerc(ComplexDouble alpha,
ComplexDoubleMatrix x,
ComplexDoubleMatrix y,
ComplexDoubleMatrix a)
Compute A <- alpha * x * y^H + A (general rank-1 update)
|
static ComplexFloatMatrix |
gerc(ComplexFloat alpha,
ComplexFloatMatrix x,
ComplexFloatMatrix y,
ComplexFloatMatrix a)
Compute A <- alpha * x * y^H + A (general rank-1 update)
|
static ComplexDoubleMatrix |
geru(ComplexDouble alpha,
ComplexDoubleMatrix x,
ComplexDoubleMatrix y,
ComplexDoubleMatrix a)
Compute A <- alpha * x * y^T + A (general rank-1 update)
|
static ComplexFloatMatrix |
geru(ComplexFloat alpha,
ComplexFloatMatrix x,
ComplexFloatMatrix y,
ComplexFloatMatrix a)
Compute A <- alpha * x * y^T + A (general rank-1 update)
|
static DoubleMatrix |
gesv(DoubleMatrix a,
int[] ipiv,
DoubleMatrix b)
LAPACK
|
static FloatMatrix |
gesv(FloatMatrix a,
int[] ipiv,
FloatMatrix b)
LAPACK
|
static int |
iamax(ComplexDoubleMatrix x)
Compute index of element with largest absolute value (complex version).
|
static int |
iamax(ComplexFloatMatrix x)
Compute index of element with largest absolute value (complex version).
|
static int |
iamax(DoubleMatrix x)
Compute index of element with largest absolute value (index of absolute
value maximum)
|
static int |
iamax(FloatMatrix x)
Compute index of element with largest absolute value (index of absolute
value maximum)
|
static double |
nrm2(ComplexDoubleMatrix x) |
static float |
nrm2(ComplexFloatMatrix x) |
static double |
nrm2(DoubleMatrix x)
Compute || x ||_2 (2-norm)
|
static float |
nrm2(FloatMatrix x)
Compute || x ||_2 (2-norm)
|
static void |
orgqr(int n,
int k,
DoubleMatrix A,
DoubleMatrix tau) |
static void |
orgqr(int n,
int k,
FloatMatrix A,
FloatMatrix tau) |
static void |
ormqr(char side,
char trans,
DoubleMatrix A,
DoubleMatrix tau,
DoubleMatrix C) |
static void |
ormqr(char side,
char trans,
FloatMatrix A,
FloatMatrix tau,
FloatMatrix C) |
static void |
posv(char uplo,
DoubleMatrix A,
DoubleMatrix B) |
static void |
posv(char uplo,
FloatMatrix A,
FloatMatrix B) |
static ComplexDoubleMatrix |
scal(ComplexDouble alpha,
ComplexDoubleMatrix x) |
static ComplexFloatMatrix |
scal(ComplexFloat alpha,
ComplexFloatMatrix x) |
static DoubleMatrix |
scal(double alpha,
DoubleMatrix x)
Compute x <- alpha * x (scale a matrix)
|
static FloatMatrix |
scal(float alpha,
FloatMatrix x)
Compute x <- alpha * x (scale a matrix)
|
static DoubleMatrix |
swap(DoubleMatrix x,
DoubleMatrix y)
Compute x <-> y (swap two matrices)
|
static FloatMatrix |
swap(FloatMatrix x,
FloatMatrix y)
Compute x <-> y (swap two matrices)
|
static int |
syev(char jobz,
char uplo,
DoubleMatrix a,
DoubleMatrix w) |
static int |
syev(char jobz,
char uplo,
FloatMatrix a,
FloatMatrix w) |
static int |
syevd(char jobz,
char uplo,
DoubleMatrix A,
DoubleMatrix w) |
static int |
syevd(char jobz,
char uplo,
FloatMatrix A,
FloatMatrix w) |
static int |
syevr(char jobz,
char range,
char uplo,
DoubleMatrix a,
double vl,
double vu,
int il,
int iu,
double abstol,
DoubleMatrix w,
DoubleMatrix z,
int[] isuppz) |
static int |
syevr(char jobz,
char range,
char uplo,
FloatMatrix a,
float vl,
float vu,
int il,
int iu,
float abstol,
FloatMatrix w,
FloatMatrix z,
int[] isuppz) |
static int |
syevx(char jobz,
char range,
char uplo,
DoubleMatrix a,
double vl,
double vu,
int il,
int iu,
double abstol,
DoubleMatrix w,
DoubleMatrix z) |
static int |
syevx(char jobz,
char range,
char uplo,
FloatMatrix a,
float vl,
float vu,
int il,
int iu,
float abstol,
FloatMatrix w,
FloatMatrix z) |
static int |
sygvd(int itype,
char jobz,
char uplo,
DoubleMatrix A,
DoubleMatrix B,
DoubleMatrix W) |
static int |
sygvd(int itype,
char jobz,
char uplo,
FloatMatrix A,
FloatMatrix B,
FloatMatrix W) |
static int |
sygvx(int itype,
char jobz,
char range,
char uplo,
DoubleMatrix A,
DoubleMatrix B,
double vl,
double vu,
int il,
int iu,
double abstol,
int[] m,
DoubleMatrix W,
DoubleMatrix Z) |
static int |
sygvx(int itype,
char jobz,
char range,
char uplo,
FloatMatrix A,
FloatMatrix B,
float vl,
float vu,
int il,
int iu,
float abstol,
int[] m,
FloatMatrix W,
FloatMatrix Z) |
static DoubleMatrix |
sysv(char uplo,
DoubleMatrix a,
int[] ipiv,
DoubleMatrix b) |
static FloatMatrix |
sysv(char uplo,
FloatMatrix a,
int[] ipiv,
FloatMatrix b) |
public static DoubleMatrix swap(DoubleMatrix x, DoubleMatrix y)
public static DoubleMatrix scal(double alpha, DoubleMatrix x)
public static ComplexDoubleMatrix scal(ComplexDouble alpha, ComplexDoubleMatrix x)
public static DoubleMatrix copy(DoubleMatrix x, DoubleMatrix y)
public static ComplexDoubleMatrix copy(ComplexDoubleMatrix x, ComplexDoubleMatrix y)
public static DoubleMatrix axpy(double da, DoubleMatrix dx, DoubleMatrix dy)
public static ComplexDoubleMatrix axpy(ComplexDouble da, ComplexDoubleMatrix dx, ComplexDoubleMatrix dy)
public static double dot(DoubleMatrix x, DoubleMatrix y)
public static ComplexDouble dotc(ComplexDoubleMatrix x, ComplexDoubleMatrix y)
public static ComplexDouble dotu(ComplexDoubleMatrix x, ComplexDoubleMatrix y)
public static double nrm2(DoubleMatrix x)
public static double nrm2(ComplexDoubleMatrix x)
public static double asum(DoubleMatrix x)
public static double asum(ComplexDoubleMatrix x)
public static int iamax(DoubleMatrix x)
public static int iamax(ComplexDoubleMatrix x)
x
- matrixpublic static DoubleMatrix gemv(double alpha, DoubleMatrix a, DoubleMatrix x, double beta, DoubleMatrix y)
public static DoubleMatrix ger(double alpha, DoubleMatrix x, DoubleMatrix y, DoubleMatrix a)
public static ComplexDoubleMatrix geru(ComplexDouble alpha, ComplexDoubleMatrix x, ComplexDoubleMatrix y, ComplexDoubleMatrix a)
public static ComplexDoubleMatrix gerc(ComplexDouble alpha, ComplexDoubleMatrix x, ComplexDoubleMatrix y, ComplexDoubleMatrix a)
public static DoubleMatrix gemm(double alpha, DoubleMatrix a, DoubleMatrix b, double beta, DoubleMatrix c)
public static ComplexDoubleMatrix gemm(ComplexDouble alpha, ComplexDoubleMatrix a, ComplexDoubleMatrix b, ComplexDouble beta, ComplexDoubleMatrix c)
public static DoubleMatrix gesv(DoubleMatrix a, int[] ipiv, DoubleMatrix b)
public static DoubleMatrix sysv(char uplo, DoubleMatrix a, int[] ipiv, DoubleMatrix b)
public static int syev(char jobz, char uplo, DoubleMatrix a, DoubleMatrix w)
public static int syevx(char jobz, char range, char uplo, DoubleMatrix a, double vl, double vu, int il, int iu, double abstol, DoubleMatrix w, DoubleMatrix z)
public static int syevd(char jobz, char uplo, DoubleMatrix A, DoubleMatrix w)
public static int syevr(char jobz, char range, char uplo, DoubleMatrix a, double vl, double vu, int il, int iu, double abstol, DoubleMatrix w, DoubleMatrix z, int[] isuppz)
public static void posv(char uplo, DoubleMatrix A, DoubleMatrix B)
public static int geev(char jobvl, char jobvr, DoubleMatrix A, DoubleMatrix WR, DoubleMatrix WI, DoubleMatrix VL, DoubleMatrix VR)
public static int sygvd(int itype, char jobz, char uplo, DoubleMatrix A, DoubleMatrix B, DoubleMatrix W)
public static int sygvx(int itype, char jobz, char range, char uplo, DoubleMatrix A, DoubleMatrix B, double vl, double vu, int il, int iu, double abstol, int[] m, DoubleMatrix W, DoubleMatrix Z)
public static void gelsd(DoubleMatrix A, DoubleMatrix B)
A
- an (m,n) matrixB
- an (max(m,n), k) matrix (well, at least)public static void geqrf(DoubleMatrix A, DoubleMatrix tau)
public static void ormqr(char side, char trans, DoubleMatrix A, DoubleMatrix tau, DoubleMatrix C)
public static void orgqr(int n, int k, DoubleMatrix A, DoubleMatrix tau)
public static FloatMatrix swap(FloatMatrix x, FloatMatrix y)
public static FloatMatrix scal(float alpha, FloatMatrix x)
public static ComplexFloatMatrix scal(ComplexFloat alpha, ComplexFloatMatrix x)
public static FloatMatrix copy(FloatMatrix x, FloatMatrix y)
public static ComplexFloatMatrix copy(ComplexFloatMatrix x, ComplexFloatMatrix y)
public static FloatMatrix axpy(float da, FloatMatrix dx, FloatMatrix dy)
public static ComplexFloatMatrix axpy(ComplexFloat da, ComplexFloatMatrix dx, ComplexFloatMatrix dy)
public static float dot(FloatMatrix x, FloatMatrix y)
public static ComplexFloat dotc(ComplexFloatMatrix x, ComplexFloatMatrix y)
public static ComplexFloat dotu(ComplexFloatMatrix x, ComplexFloatMatrix y)
public static float nrm2(FloatMatrix x)
public static float nrm2(ComplexFloatMatrix x)
public static float asum(FloatMatrix x)
public static float asum(ComplexFloatMatrix x)
public static int iamax(FloatMatrix x)
public static int iamax(ComplexFloatMatrix x)
x
- matrixpublic static FloatMatrix gemv(float alpha, FloatMatrix a, FloatMatrix x, float beta, FloatMatrix y)
public static FloatMatrix ger(float alpha, FloatMatrix x, FloatMatrix y, FloatMatrix a)
public static ComplexFloatMatrix geru(ComplexFloat alpha, ComplexFloatMatrix x, ComplexFloatMatrix y, ComplexFloatMatrix a)
public static ComplexFloatMatrix gerc(ComplexFloat alpha, ComplexFloatMatrix x, ComplexFloatMatrix y, ComplexFloatMatrix a)
public static FloatMatrix gemm(float alpha, FloatMatrix a, FloatMatrix b, float beta, FloatMatrix c)
public static ComplexFloatMatrix gemm(ComplexFloat alpha, ComplexFloatMatrix a, ComplexFloatMatrix b, ComplexFloat beta, ComplexFloatMatrix c)
public static FloatMatrix gesv(FloatMatrix a, int[] ipiv, FloatMatrix b)
public static FloatMatrix sysv(char uplo, FloatMatrix a, int[] ipiv, FloatMatrix b)
public static int syev(char jobz, char uplo, FloatMatrix a, FloatMatrix w)
public static int syevx(char jobz, char range, char uplo, FloatMatrix a, float vl, float vu, int il, int iu, float abstol, FloatMatrix w, FloatMatrix z)
public static int syevd(char jobz, char uplo, FloatMatrix A, FloatMatrix w)
public static int syevr(char jobz, char range, char uplo, FloatMatrix a, float vl, float vu, int il, int iu, float abstol, FloatMatrix w, FloatMatrix z, int[] isuppz)
public static void posv(char uplo, FloatMatrix A, FloatMatrix B)
public static int geev(char jobvl, char jobvr, FloatMatrix A, FloatMatrix WR, FloatMatrix WI, FloatMatrix VL, FloatMatrix VR)
public static int sygvd(int itype, char jobz, char uplo, FloatMatrix A, FloatMatrix B, FloatMatrix W)
public static int sygvx(int itype, char jobz, char range, char uplo, FloatMatrix A, FloatMatrix B, float vl, float vu, int il, int iu, float abstol, int[] m, FloatMatrix W, FloatMatrix Z)
public static void gelsd(FloatMatrix A, FloatMatrix B)
A
- an (m,n) matrixB
- an (max(m,n), k) matrix (well, at least)public static void geqrf(FloatMatrix A, FloatMatrix tau)
public static void ormqr(char side, char trans, FloatMatrix A, FloatMatrix tau, FloatMatrix C)
public static void orgqr(int n, int k, FloatMatrix A, FloatMatrix tau)
Copyright © 2015. All rights reserved.