|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--drasys.or.linear.blas.BLAS1
Serial implementation of the BLAS1.
See BLAS1I for more details.
| Constructor Summary | |
BLAS1()
|
|
| Method Summary | |
void |
caxpy(int n,
ComplexI alpha,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Constant times a vector plus a vector: y = y + alpha * x. |
void |
ccopy(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Copies vector x to vector y: y = x. |
Complex |
cdotc(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
Complex results)
Computes the dot product of two vectors: alpha = x (.) y. |
Complex |
cdotu(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
Complex results)
Computes the dot product of two vectors: alpha = x (.) y. |
void |
cscal(int n,
ComplexI alpha,
float[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
void |
csscal(int n,
float alpha,
float[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
void |
cswap(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Interchange two vectors: x <-> y. |
double |
dasum(int n,
double[] x,
int begx,
int incx)
Computes the sum of the absolute values. |
void |
daxpy(int n,
double alpha,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Constant times a vector plus a vector: y = y + alpha * x. |
void |
dcopy(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Copies vector x to vector y: y = x. |
double |
ddot(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Computes the dot product of two vectors: alpha = x (.) y. |
double |
dnrm2(int n,
double[] x,
int begx,
int incx)
Computes the euclidean norm of the vector: sqrt(sum(xi^2)) |
void |
drot(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
double cos,
double sin)
Applies a plane rotation: x = cos*x + sin*y & y = cos*y + sin*x |
void |
drotg(Real a,
Real b,
Real cos,
Real sin)
Generates the parmseters cos and sin for a plane rotation. |
void |
dscal(int n,
double alpha,
double[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
double |
dsdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Computes the dot product of two vectors: alpha = x (.) y. |
void |
dswap(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Interchange two vectors: x <-> y. |
double |
dzasum(int n,
double[] x,
int begx,
int incx)
Computes the sum of the absolute values. |
double |
dznrm2(int n,
double[] x,
int begx,
int incx)
Computes the euclidean norm of the vector: sqrt(sum(xi^2)) |
int |
icamax(int n,
float[] x,
int begx,
int incx)
Finds the index of the element with the maximum absolute value. |
int |
idamax(int n,
double[] x,
int begx,
int incx)
Finds the index of the element with the maximum absolute value. |
int |
isamax(int n,
float[] x,
int begx,
int incx)
Finds the index of the element with the maximum absolute value. |
int |
izamax(int n,
double[] x,
int begx,
int incx)
Finds the index of the element with the maximum absolute value. |
float |
sasum(int n,
float[] x,
int begx,
int incx)
Computes the sum of the absolute values. |
void |
saxpy(int n,
float alpha,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Constant times a vector plus a vector: y = y + alpha * x. |
float |
scasum(int n,
float[] x,
int begx,
int incx)
Computes the sum of the absolute values. |
float |
scnrm2(int n,
float[] x,
int begx,
int incx)
Computes the euclidean norm of the vector: sqrt(sum(xi^2)) |
void |
scopy(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Copies vector x to vector y: y = x. |
float |
sdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Computes the dot product of two vectors: alpha = x (.) y. |
float |
sdsdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Computes the dot product of two vectors: alpha = x (.) y. |
float |
snrm2(int n,
float[] x,
int begx,
int incx)
Computes the euclidean norm of the vector: sqrt(sum(xi^2)) |
void |
srot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
float cos,
float sin)
Applies a plane rotation: x = cos*x + sin*y & y = cos*y + sin*x |
void |
srotg(Real a,
Real b,
Real cos,
Real sin)
Generates the parmseters cos and sin for a plane rotation. |
void |
sscal(int n,
float alpha,
float[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
void |
sswap(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
Interchange two vectors: x <-> y. |
void |
zaxpy(int n,
ComplexI alpha,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Constant times a vector plus a vector: y = y + alpha * x. |
void |
zcopy(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
Copies vector x to vector y: y = x. |
Complex |
zdotc(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
Complex results)
Computes the dot product of two vectors: alpha = x (.) y. |
Complex |
zdotu(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
Complex results)
Computes the dot product of two vectors: alpha = x (.) y. |
void |
zdscal(int n,
double alpha,
double[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
void |
zscal(int n,
ComplexI alpha,
double[] x,
int begx,
int incx)
Scale a vector by a constant: x = alpha * x. |
void |
zswap(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
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 BLAS1()
| Method Detail |
public double dasum(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void daxpy(int n,
double alpha,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsalpha - constant multiplier of 'x'.x - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void dcopy(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public double ddot(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void drot(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
double cos,
double sin)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elementsalpha - constantbeta - constant
public void dscal(int n,
double alpha,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void dswap(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public double dnrm2(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public int idamax(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public float sasum(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void saxpy(int n,
float alpha,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsalpha - constant multiplier of 'x'.x - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void scopy(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public float sdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void srot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
float cos,
float sin)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elementsalpha - constantbeta - constant
public void sscal(int n,
float alpha,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void sswap(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public float snrm2(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public int isamax(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public double dzasum(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void zaxpy(int n,
ComplexI alpha,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsalpha - constant multiplier of 'x'.x - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void zcopy(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public Complex zdotu(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
Complex results)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public Complex zdotc(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy,
Complex results)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void zscal(int n,
ComplexI alpha,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void zswap(int n,
double[] x,
int begx,
int incx,
double[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public float scasum(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void caxpy(int n,
ComplexI alpha,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsalpha - constant multiplier of 'x'.x - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void ccopy(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public Complex cdotu(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
Complex results)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public Complex cdotc(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy,
Complex results)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public void cscal(int n,
ComplexI alpha,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void cswap(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public double dsdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public float sdsdot(int n,
float[] x,
int begx,
int incx,
float[] y,
int begy,
int incy)
throws BlasException
n - number of vector elementsx - array containing the 'x' vector elementsbegx - offset of the first 'x' vector elementincx - the distance between 'x' vector elementsy - array containing the 'y' vector elementsbegy - offset of the first 'y' vector elementincy - the distance between 'y' vector elements
public int izamax(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public int icamax(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public double dznrm2(int n,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public float scnrm2(int n,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void drotg(Real a,
Real b,
Real cos,
Real sin)
throws BlasException
da - db - cos - cosine return valuesin - sine return value
public void srotg(Real a,
Real b,
Real cos,
Real sin)
throws BlasException
da - db - cos - cosine return valuesin - sine return value
public void zdscal(int n,
double alpha,
double[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
public void csscal(int n,
float alpha,
float[] x,
int begx,
int incx)
throws BlasException
n - number of vector elementsalpha - scale factorx - array containing the vector elementsbegx - offset of the first vector elementincx - the distance between vector elements
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||