|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface Blas
Method Summary | |
---|---|
void |
assign(DoubleMatrix2D x,
DoubleMatrix2D y,
BinaryFunction function)
Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]). |
void |
assign(DoubleMatrix2D A,
UnaryFunction function)
Deprecated. Assigns the result of a function to each cell; x[row,col] = function(x[row,col]). |
double |
dasum(DoubleMatrix1D x)
Deprecated. Returns the sum of absolute values; |x[0]| + |x[1]| + ... |
void |
daxpy(double alpha,
DoubleMatrix1D x,
DoubleMatrix1D y)
Deprecated. Combined vector scaling; y = y + alpha*x. |
void |
daxpy(double alpha,
DoubleMatrix2D A,
DoubleMatrix2D B)
Deprecated. Combined matrix scaling; B = B + alpha*A. |
void |
dcopy(DoubleMatrix1D x,
DoubleMatrix1D y)
Deprecated. Vector assignment (copying); y = x. |
void |
dcopy(DoubleMatrix2D A,
DoubleMatrix2D B)
Deprecated. Matrix assignment (copying); B = A. |
double |
ddot(DoubleMatrix1D x,
DoubleMatrix1D y)
Deprecated. Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]). |
void |
dgemm(boolean transposeA,
boolean transposeB,
double alpha,
DoubleMatrix2D A,
DoubleMatrix2D B,
double beta,
DoubleMatrix2D C)
Deprecated. Generalized linear algebraic matrix-matrix multiply; C = alpha*A*B + beta*C. |
void |
dgemv(boolean transposeA,
double alpha,
DoubleMatrix2D A,
DoubleMatrix1D x,
double beta,
DoubleMatrix1D y)
Deprecated. Generalized linear algebraic matrix-vector multiply; y = alpha*A*x + beta*y. |
void |
dger(double alpha,
DoubleMatrix1D x,
DoubleMatrix1D y,
DoubleMatrix2D A)
Deprecated. Performs a rank 1 update; A = A + alpha*x*y'. |
double |
dnrm2(DoubleMatrix1D x)
Deprecated. Return the 2-norm; sqrt(x[0]^2 + x[1]^2 + ...). |
void |
drot(DoubleMatrix1D x,
DoubleMatrix1D y,
double c,
double s)
Deprecated. Applies a givens plane rotation to (x,y); x = c*x + s*y; y = c*y - s*x. |
void |
drotg(double a,
double b,
double[] rotvec)
Deprecated. Constructs a Givens plane rotation for (a,b). |
void |
dscal(double alpha,
DoubleMatrix1D x)
Deprecated. Vector scaling; x = alpha*x. |
void |
dscal(double alpha,
DoubleMatrix2D A)
Deprecated. Matrix scaling; A = alpha*A. |
void |
dswap(DoubleMatrix1D x,
DoubleMatrix1D y)
Deprecated. Swaps the elements of two vectors; y <==> x. |
void |
dswap(DoubleMatrix2D x,
DoubleMatrix2D y)
Deprecated. Swaps the elements of two matrices; B <==> A. |
void |
dsymv(boolean isUpperTriangular,
double alpha,
DoubleMatrix2D A,
DoubleMatrix1D x,
double beta,
DoubleMatrix1D y)
Deprecated. Symmetric matrix-vector multiplication; y = alpha*A*x + beta*y. |
void |
dtrmv(boolean isUpperTriangular,
boolean transposeA,
boolean isUnitTriangular,
DoubleMatrix2D A,
DoubleMatrix1D x)
Deprecated. Triangular matrix-vector multiplication; x = A*x or x = A'*x. |
int |
idamax(DoubleMatrix1D x)
Deprecated. Returns the index of largest absolute value; i such that |x[i]| == max(|x[0]|,|x[1]|,...).. |
Method Detail |
---|
void assign(DoubleMatrix2D A, UnaryFunction function)
A
- the matrix to modify.function
- a function object taking as argument the current cell's value.Functions
void assign(DoubleMatrix2D x, DoubleMatrix2D y, BinaryFunction function)
x
- the matrix to modify.y
- the secondary matrix to operate on.function
- a function object taking as first argument the current cell's value of this, and as second
argument the current cell's value of y,
java.lang.IllegalArgumentException
- if x.columns() != y.columns() || x.rows() != y.rows()Functions
double dasum(DoubleMatrix1D x)
x
- the first vector.void daxpy(double alpha, DoubleMatrix1D x, DoubleMatrix1D y)
alpha
- a scale factor.x
- the first source vector.y
- the second source vector, this is also the vector where results are stored.
java.lang.IllegalArgumentException
- x.size() != y.size()..void daxpy(double alpha, DoubleMatrix2D A, DoubleMatrix2D B)
alpha
- a scale factor.A
- the first source matrix.B
- the second source matrix, this is also the matrix where results are stored.
java.lang.IllegalArgumentException
- if A.columns() != B.columns() || A.rows() != B.rows().void dcopy(DoubleMatrix1D x, DoubleMatrix1D y)
x
- the source vector.y
- the destination vector.
java.lang.IllegalArgumentException
- x.size() != y.size().void dcopy(DoubleMatrix2D A, DoubleMatrix2D B)
A
- the source matrix.B
- the destination matrix.
java.lang.IllegalArgumentException
- if A.columns() != B.columns() || A.rows() != B.rows().double ddot(DoubleMatrix1D x, DoubleMatrix1D y)
x
- the first vector.y
- the second vector.
java.lang.IllegalArgumentException
- if x.size() != y.size().void dgemm(boolean transposeA, boolean transposeB, double alpha, DoubleMatrix2D A, DoubleMatrix2D B, double beta, DoubleMatrix2D C)
transposeA
- set this flag to indicate that the multiplication shall be performed on A'.transposeB
- set this flag to indicate that the multiplication shall be performed on B'.alpha
- a scale factor.A
- the first source matrix.B
- the second source matrix.beta
- a scale factor.C
- the third source matrix, this is also the matrix where results are stored.
java.lang.IllegalArgumentException
- if B.rows() != A.columns().
java.lang.IllegalArgumentException
- if C.rows() != A.rows() || C.columns() != B.columns().
java.lang.IllegalArgumentException
- if A == C || B == C.void dgemv(boolean transposeA, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y)
transposeA
- set this flag to indicate that the multiplication shall be performed on A'.alpha
- a scale factor.A
- the source matrix.x
- the first source vector.beta
- a scale factor.y
- the second source vector, this is also the vector where results are stored.
java.lang.IllegalArgumentException
- A.columns() != x.size() || A.rows() != y.size())..void dger(double alpha, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A)
A = { {6,5}, {7,6} }, x = {1,2}, y = {3,4}, alpha = 1 --> A = { {9,9}, {13,14} }
alpha
- a scalar.x
- an m element vector.y
- an n element vector.A
- an m by n matrix.double dnrm2(DoubleMatrix1D x)
x
- the vector.void drot(DoubleMatrix1D x, DoubleMatrix1D y, double c, double s)
x
- the first vector.y
- the second vector.c
- the cosine of the angle of rotation.s
- the sine of the angle of rotation.void drotg(double a, double b, double[] rotvec)
a
- rotational elimination parameter a.b
- rotational elimination parameter b.rotvec
- Must be at least of length 4. On output contains the values {a,b,c,s}.void dscal(double alpha, DoubleMatrix1D x)
alpha
- a scale factor.x
- the first vector.void dscal(double alpha, DoubleMatrix2D A)
alpha
- a scale factor.A
- the matrix.void dswap(DoubleMatrix1D x, DoubleMatrix1D y)
x
- the first vector.y
- the second vector.
java.lang.IllegalArgumentException
- x.size() != y.size().void dswap(DoubleMatrix2D x, DoubleMatrix2D y)
x
- the first matrix.y
- the second matrix.
java.lang.IllegalArgumentException
- if A.columns() != B.columns() || A.rows() != B.rows().void dsymv(boolean isUpperTriangular, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y)
isUpperTriangular
- is A upper triangular or lower triangular part to be used?alpha
- scaling factor.A
- the source matrix.x
- the first source vector.beta
- scaling factor.y
- the second vector holding source and destination.void dtrmv(boolean isUpperTriangular, boolean transposeA, boolean isUnitTriangular, DoubleMatrix2D A, DoubleMatrix1D x)
isUpperTriangular
- is A upper triangular or lower triangular?transposeA
- set this flag to indicate that the multiplication shall be performed on A'.isUnitTriangular
- true --> A is assumed to be unit triangular; false --> A is not assumed to be unit
triangularA
- the source matrix.x
- the vector holding source and destination.int idamax(DoubleMatrix1D x)
x
- the vector to search through.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |