|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.linear.blas.VectorBLAS1
BLAS1 layer that operates on contiguous vectors
.
For a traditional and more feature rich implementation of the BLAS see
BLAS1
, BLAS2
and BLAS3
.
References:
Linear Algebra and Its Applications
Gilbert Strang / Hardcover / Published 1988
Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Constructor Summary | |
VectorBLAS1()
Create a vector BLAS with the default BLAS implementation and a base index of '0'. |
|
VectorBLAS1(int base)
Create a vector BLAS with a default BLAS implementation and an explicit base index. |
|
VectorBLAS1(int base,
BLAS1I blas1)
Create a vector BLAS with an explicit BLAS implementation and an explicit base index. |
Method Summary | |
double |
dasum(ContiguousVectorI x)
Computes the sum of the absolute values. |
void |
daxpy(double a,
ContiguousVectorI x,
ContiguousVectorI y)
Constant times a vector plus a vector. Y = Y + a * X |
void |
dcopy(ContiguousVectorI x,
ContiguousVectorI y)
Copies vector x to vector y. Y = X; |
double |
ddot(ContiguousVectorI x,
ContiguousVectorI y)
Computes the dot product of two vectors. Y = X . |
double |
dnrm2(ContiguousVectorI x)
Computes the euclidean norm of the vector. |
void |
drot(ContiguousVectorI x,
ContiguousVectorI y,
double cos,
double sin)
Applies a plane rotation. |
void |
dscal(double a,
ContiguousVectorI x)
Scale a vector by a constant. X = a * X |
void |
dswap(ContiguousVectorI x,
ContiguousVectorI y)
Interchange two vectors. X <-> Y |
int |
idamax(ContiguousVectorI x)
Finds the index of the element with the maximum absolute value. |
void |
zaxpy(ComplexI a,
ContiguousVectorI x,
ContiguousVectorI y)
Constant times a vector plus a vector. Y = Y + a * X |
void |
zcopy(ContiguousVectorI x,
ContiguousVectorI y)
Copies vector x to vector y. Y = X; |
Complex |
zdotc(ContiguousVectorI x,
ContiguousVectorI y,
Complex results)
Computes the dot product of two vectors: alpha = conjugate(x) (.) y. |
Complex |
zdotu(ContiguousVectorI x,
ContiguousVectorI y,
Complex results)
Computes the dot product of two vectors: alpha = x (.) y. |
void |
zscal(ComplexI a,
ContiguousVectorI x)
Scale a vector by a constant. X = a * X |
void |
zswap(ContiguousVectorI x,
ContiguousVectorI y)
Interchange two vectors. X <-> Y |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public VectorBLAS1()
public VectorBLAS1(int base)
public VectorBLAS1(int base, BLAS1I blas1)
Method Detail |
public double dasum(ContiguousVectorI x) throws BlasException
public void daxpy(double a, ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public void dcopy(ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public double ddot(ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public void drot(ContiguousVectorI x, ContiguousVectorI y, double cos, double sin) throws BlasException
public void dscal(double a, ContiguousVectorI x) throws BlasException
public void dswap(ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public double dnrm2(ContiguousVectorI x) throws BlasException
public int idamax(ContiguousVectorI x) throws BlasException
public void zaxpy(ComplexI a, ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public void zcopy(ContiguousVectorI x, ContiguousVectorI y) throws BlasException
public Complex zdotu(ContiguousVectorI x, ContiguousVectorI y, Complex results) throws BlasException
public Complex zdotc(ContiguousVectorI x, ContiguousVectorI y, Complex results) throws BlasException
public void zscal(ComplexI a, ContiguousVectorI x) throws BlasException
public void zswap(ContiguousVectorI x, ContiguousVectorI y) throws BlasException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |