public class Blas extends Object
Constructor and Description 

Blas() 
Modifier and Type  Method and Description 

static void 
colaxpy_j(int nrow,
double a,
double[][] x,
int begin,
int j1,
int j2)
This method multiplies a constant times a portion of a column
of a matrix and adds the product to the corresponding portion
of another column of the matrix  a portion of col2 is
replaced by the corresponding portion of a*col1 + col2.

static double 
coldot_j(int nrow,
double[][] x,
int begin,
int j1,
int j2)
This method calculates the dot product of portions of two
columns of a matrix.

static int 
colisamax_j(int n,
double[][] x,
int incx,
int begin,
int j)
This method finds the index of the element of a portion of a
column of a matrix that has the maximum absolute value.

static double 
colnrm2_j(int nrow,
double[][] x,
int begin,
int j)
This method calculates the Euclidean norm of a portion of a
column of a matrix.

static void 
colrot_j(int n,
double[][] x,
int j1,
int j2,
double c,
double s)
This method "applies a plane rotation."
It is a modification of the LINPACK function
DROT.

static void 
colscal_j(int nrow,
double a,
double[][] x,
int begin,
int j)
This method scales a portion of a column of a matrix by a constant.

static void 
colswap_j(int n,
double[][] x,
int j1,
int j2)
This method interchanges two columns of a matrix.

static void 
colvaxpy_j(int nrow,
double a,
double[][] x,
double[] y,
int begin,
int j)
This method multiplies a constant times a portion of a column
of a matrix x[ ][ ] and adds the product to the corresponding portion
of a vector y[ ]  a portion of y[ ] is replaced by the corresponding
portion of ax[ ][j] + y[ ].

static double 
colvdot_j(int nrow,
double[][] x,
double[] y,
int begin,
int j)
This method calculates the dot product of a portion of a
column of a matrix and the corresponding portion of a
vector.

static void 
colvraxpy_j(int nrow,
double a,
double[] y,
double[][] x,
int begin,
int j)
This method multiplies a constant times a portion of a vector y[ ]
and adds the product to the corresponding portion
of a column of a matrix x[ ][ ]  a portion of column j of x[ ][ ]
is replaced by the corresponding
portion of ay[ ] + x[ ][j].

static void 
daxpy_j(int n,
double da,
double[] dx,
int incx,
double[] dy,
int incy)
This method multiplies a constant times a vector and adds the product
to another vector  dy[ ] = da*dx[ ] + dy[ ].

static void 
dcopy_j(int n,
double[] dx,
int incx,
double[] dy,
int incy)
This method copies the vector dx[ ] to the vector dy[ ].

static void 
dcopyp_j(int nrow,
double[] x,
double[] y,
int begin)
This method copies a portion of vector x[ ] to the corresponding
portion of vector y[ ].

static double 
ddot_j(int n,
double[] dx,
int incx,
double[] dy,
int incy)
This method calculates the dot product of two vectors.

static double 
dnrm2_j(int n,
double[] x,
int incx)
This method calculates the Euclidean norm of the vector
stored in dx[ ] with storage increment incx.

static double 
dnrm2p_j(int nrow,
double[] x,
int begin)
This method calculates the Euclidean norm of a portion
of a vector x[ ].

static void 
drotg_j(double[] rotvec)
This method constructs a Givens plane rotation.

static void 
dscal_j(int n,
double da,
double[] dx,
int incx)
This method scales a vector by a constant.

static void 
dscalp_j(int nrow,
double a,
double[] x,
int begin)
This method scales a portion of a vector by a constant.

static void 
dswap_j(int n,
double[] dx,
int incx,
double[] dy,
int incy)
This method interchanges two vectors.

static int 
isamax_j(int n,
double[] x,
int incx)
This method finds the index of the element of a vector
that has the maximum absolute value.

static void 
matmat_j(double[][] a,
double[][] b,
double[][] c,
int n,
int p,
int r)
This method multiplies an n x p matrix by a p x r matrix.

static void 
mattran_j(double[][] a,
double[][] at,
int n,
int p)
This method obtains the transpose of an n x p matrix.

static void 
matvec_j(double[][] a,
double[] b,
double[] c,
int n,
int p)
This method multiplies an n x p matrix by a p x 1 vector.

static double 
sign_j(double a,
double b)
This method implements the FORTRAN sign (not sin) function.

public static int isamax_j(int n, double[] x, int incx)
n
 The number of elements to be checkedx[
 ] vectorincx
 The subscript increment for x[ ]public static int colisamax_j(int n, double[][] x, int incx, int begin, int j)
n
 The number of elements to be checkedx[
 ][ ] The matrixincx
 The subscript increment for x[ ][ ]begin
 The starting rowj
 The id of the columnpublic static void daxpy_j(int n, double da, double[] dx, int incx, double[] dy, int incy)
n
 The order of the vectors dy[ ] and dx[ ]da
 The constantdx[
 ] This vector will be multiplied by the constant daincx
 The subscript increment for dx[ ]dy[
 ] This vector will be added to da*dx[ ]incy
 The subscript increment for dy[ ]public static double ddot_j(int n, double[] dx, int incx, double[] dy, int incy)
n
 The order of the vectors dx[ ] and dy[ ]dx[
 ] vectorincx
 The subscript increment for dx[ ]dy[
 ] vectorincy
 The subscript increment for dy[ ]public static void dscal_j(int n, double da, double[] dx, int incx)
n
 The order of the vector dx[ ]da
 The constantdx[
 ] This vector will be multiplied by the constant daincx
 The subscript increment for dx[ ]public static void dswap_j(int n, double[] dx, int incx, double[] dy, int incy)
n
 The order of the vectors dx[ ] and dy[ ]dx[
 ] vectorincx
 The subscript increment for dx[ ]dy[
 ] vectorincy
 The subscript increment for dy[ ]public static double dnrm2_j(int n, double[] x, int incx)
n
 The order of the vector x[ ]x[
 ] vectorincx
 The subscript increment for x[ ]public static void dcopy_j(int n, double[] dx, int incx, double[] dy, int incy)
n
 The order of dx[ ] and dy[ ]dx[
 ] vectorincx
 The subscript increment for dx[ ]dy[
 ] vectorincy
 The subscript increment for dy[ ]public static void drotg_j(double[] rotvec)
rotvec[]
 Contains the a,b,c,s values. In Java they
cannot be passed as primitive types (e.g., double
or int or ...) if we want their return values to
be altered.public static void colaxpy_j(int nrow, double a, double[][] x, int begin, int j1, int j2)
nrow
 The number of rows involveda
 The constantx[
 ][ ] The matrixbegin
 The starting rowj1
 The id of col1j2
 The id of col2public static void colvaxpy_j(int nrow, double a, double[][] x, double[] y, int begin, int j)
nrow
 The number of rows involveda
 The constantx[
 ][ ] The matrixy[
 ] The vectorbegin
 The starting rowj
 The id of the column of the x matrixpublic static void colvraxpy_j(int nrow, double a, double[] y, double[][] x, int begin, int j)
nrow
 The number of rows involveda
 The constanty[
 ] The vectorx[
 ][ ] The matrixbegin
 The starting rowj
 The id of the column of the x matrixpublic static double coldot_j(int nrow, double[][] x, int begin, int j1, int j2)
nrow
 The number of rows involvedx[
 ][ ] The matrixbegin
 The starting rowj1
 The id of the first columnj2
 The id of the second columnpublic static double colvdot_j(int nrow, double[][] x, double[] y, int begin, int j)
nrow
 The number of rows involvedx[
 ][ ] The matrixy[
 ] The vectorbegin
 The starting rowj
 The id of the column of the matrixpublic static void colscal_j(int nrow, double a, double[][] x, int begin, int j)
nrow
 The number of rows involveda
 The constantx[
 ][ ] The matrixbegin
 The starting rowj
 The id of the columnpublic static void dscalp_j(int nrow, double a, double[] x, int begin)
nrow
 The number of rows involveda
 The constantx[
 ] The vectorbegin
 The starting rowpublic static void colswap_j(int n, double[][] x, int j1, int j2)
n
 The number of rows of the matrixx[
 ][ ] The matrixj1
 The id of the first columnj2
 The id of the second columnpublic static double colnrm2_j(int nrow, double[][] x, int begin, int j)
nrow
 The number of rows involvedx[
 ][ ] The matrixbegin
 The starting rowj
 The id of the columnpublic static double dnrm2p_j(int nrow, double[] x, int begin)
nrow
 The number of rows involvedx[
 ] vectorbegin
 The starting rowpublic static void dcopyp_j(int nrow, double[] x, double[] y, int begin)
nrow
 The number of rows involvedx[
 ] vectory[
 ] vectorbegin
 The starting rowpublic static void colrot_j(int n, double[][] x, int j1, int j2, double c, double s)
n
 The order of x[ ][ ]x[
 ][ ] The matrixj1
 The id of the first columnj2
 The id of the second columnc
 "cos"s
 "sin"public static double sign_j(double a, double b)
a
 ab
 bpublic static void matmat_j(double[][] a, double[][] b, double[][] c, int n, int p, int r)
a[
 ][ ] The left matrixb[
 ][ ] The right matrixc[
 ][ ] The productn
 np
 pr
 rpublic static void mattran_j(double[][] a, double[][] at, int n, int p)
a[
 ][ ] matrixat[
 ][ ] transpose of the matrixn
 np
 ppublic static void matvec_j(double[][] a, double[] b, double[] c, int n, int p)
a[
 ][ ] The matrixb[
 ] The vectorc[
 ] The productn
 np
 pCopyright © 2015–2017 Fiji. All rights reserved.