C# Class YAMP.Numerics.BlasL1

Provides BLAS Level 1 Access, this level contains vector operations of the form y = a * x + y.
显示文件 Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
cAxpy ( ScalarValue alpha, ScalarValue xStore, int xOffset, int xStride, ScalarValue yStore, int yOffset, int yStride, int count ) : void

Computes y = a x + y, where x, y are complex vectors and a is a complex scalar.

cDot ( ScalarValue aStore, int aOffset, int aStride, ScalarValue bStore, int bOffset, int bStride, int count ) : ScalarValue

Returns the complex dot product (a, b).

cScal ( ScalarValue alpha, ScalarValue store, int offset, int stride, int count ) : void

Returns the result of the product x = a * x, with a complex a and a complex vector x.

dAxpy ( double alpha, double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void

Computes y = a x + y, where x, y are vectors and a is a real scalar.

dCopy ( double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void

Copies some x vector to some other y vector considering the given offsets.

dDot ( double aStore, int aOffset, int aStride, double bStore, int bOffset, int bStride, int count ) : double

Returns the dot product (a, b).

dNrm1 ( double store, int offset, int stride, int count ) : double

Returns the sum_i |x_i| norm.

dNrm2 ( double store, int offset, int stride, int count ) : double

Returns |x| = sqrt( sum_i x_i^2 ) norm.

dScal ( double alpha, double store, int offset, int stride, int count ) : void

Returns the result of the product x = a * x, with a scalar a and a vector x.

dSwap ( double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void

Swaps the elements of some vector x and some vector y.

Method Details

cAxpy() public static method

Computes y = a x + y, where x, y are complex vectors and a is a complex scalar.
public static cAxpy ( ScalarValue alpha, ScalarValue xStore, int xOffset, int xStride, ScalarValue yStore, int yOffset, int yStride, int count ) : void
alpha YAMP.ScalarValue Some arbitrary complex scalar.
xStore YAMP.ScalarValue The complex vector x.
xOffset int The offset in the vector x.
xStride int The offset between two elements in x.
yStore YAMP.ScalarValue The complex vector y.
yOffset int The offset in the vector y.
yStride int The offset between two elements in y.
count int The number of elements to take.
return void

cDot() public static method

Returns the complex dot product (a, b).
public static cDot ( ScalarValue aStore, int aOffset, int aStride, ScalarValue bStore, int bOffset, int bStride, int count ) : ScalarValue
aStore YAMP.ScalarValue The first vector a.
aOffset int Offset in the vector a.
aStride int The offset between two elements of the vector a.
bStore YAMP.ScalarValue The second vector b.
bOffset int Offset in the vector a.
bStride int The offset between two elements of the vector a.
count int The number of elements to consider.
return YAMP.ScalarValue

cScal() public static method

Returns the result of the product x = a * x, with a complex a and a complex vector x.
public static cScal ( ScalarValue alpha, ScalarValue store, int offset, int stride, int count ) : void
alpha YAMP.ScalarValue Some arbitrary complex scalar.
store YAMP.ScalarValue The complex vector x.
offset int The offset in the vector x.
stride int The offset between two elements in x.
count int The number of elements to consider (from x).
return void

dAxpy() public static method

Computes y = a x + y, where x, y are vectors and a is a real scalar.
public static dAxpy ( double alpha, double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void
alpha double Some arbitrary real scalar.
xStore double The vector x.
xOffset int The offset in the vector x.
xStride int The offset between two elements in x.
yStore double The vector y.
yOffset int The offset in the vector y.
yStride int The offset between two elements in y.
count int The number of elements to take.
return void

dCopy() public static method

Copies some x vector to some other y vector considering the given offsets.
public static dCopy ( double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void
xStore double The source vector.
xOffset int Offset in the source.
xStride int The offset between two elements in the source.
yStore double The target vector.
yOffset int Offset in the target.
yStride int The offset between two elements in the target.
count int Number of elements to copy.
return void

dDot() public static method

Returns the dot product (a, b).
public static dDot ( double aStore, int aOffset, int aStride, double bStore, int bOffset, int bStride, int count ) : double
aStore double The first vector a.
aOffset int Offset in the vector a.
aStride int The offset between two elements of the vector a.
bStore double The second vector b.
bOffset int Offset in the vector a.
bStride int The offset between two elements of the vector a.
count int The number of elements to consider.
return double

dNrm1() public static method

Returns the sum_i |x_i| norm.
public static dNrm1 ( double store, int offset, int stride, int count ) : double
store double The source vector.
offset int The offset in the source.
stride int The offset between two elements.
count int The number of elements to consider.
return double

dNrm2() public static method

Returns |x| = sqrt( sum_i x_i^2 ) norm.
public static dNrm2 ( double store, int offset, int stride, int count ) : double
store double The source vector.
offset int The offset in the source.
stride int The offset between two elements.
count int The number of elements to consider.
return double

dScal() public static method

Returns the result of the product x = a * x, with a scalar a and a vector x.
public static dScal ( double alpha, double store, int offset, int stride, int count ) : void
alpha double Some arbitrary real scalar.
store double The vector x.
offset int The offset in the vector x.
stride int The offset between two elements in x.
count int The number of elements to consider (from x).
return void

dSwap() public static method

Swaps the elements of some vector x and some vector y.
public static dSwap ( double xStore, int xOffset, int xStride, double yStore, int yOffset, int yStride, int count ) : void
xStore double The first vector.
xOffset int Offset in the first vector.
xStride int The offset between two elements of the first vector.
yStore double The second vector.
yOffset int Offset in the second vector.
yStride int The offset between two elements of the second vector.
count int Number of elements to swap.
return void