11 void F77_zgemv(
int *layout,
char *transp,
int *m,
int *n,
14 const void *beta,
void *y,
int *incy) {
25 for( j=0; j<*n; j++ ){
26 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
27 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
35 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy );
38 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy );
41 void F77_zgbmv(
int *layout,
char *transp,
int *m,
int *n,
int *kl,
int *ku,
47 int i,j,irow,jcol,
LDA;
54 for( i=0; i<*ku; i++ ){
57 for( j=jcol; j<*n; j++ ){
58 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].
real;
59 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].
imag;
64 for( j=0; j<*n; j++ ){
65 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
66 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
68 for( i=*ku+1; i<*ku+*kl+1; i++ ){
71 for( j=jcol; j<(*n+*kl); j++ ){
72 A[ LDA*j+irow ].
real=a[ (*lda)*(j-jcol)+i ].real;
73 A[ LDA*j+irow ].
imag=a[ (*lda)*(j-jcol)+i ].imag;
76 cblas_zgbmv(
CblasRowMajor, trans, *m, *n, *kl, *ku, alpha, A, LDA, x,
77 *incx, beta, y, *incy );
81 cblas_zgbmv(
CblasColMajor, trans, *m, *n, *kl, *ku, alpha, a, *lda, x,
82 *incx, beta, y, *incy );
84 cblas_zgbmv(
UNDEFINED, trans, *m, *n, *kl, *ku, alpha, a, *lda, x,
85 *incx, beta, y, *incy );
99 for( j=0; j<*n; j++ ){
100 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
101 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
104 for( i=0; i<*m; i++ )
105 for( j=0; j<*n; j++ ){
106 a[ (*lda)*j+i ].
real=A[ LDA*i+j ].
real;
107 a[ (*lda)*j+i ].
imag=A[ LDA*i+j ].
imag;
126 for( i=0; i<*m; i++ )
127 for( j=0; j<*n; j++ ){
128 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
129 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
132 for( i=0; i<*m; i++ )
133 for( j=0; j<*n; j++ ){
134 a[ (*lda)*j+i ].
real=A[ LDA*i+j ].
real;
135 a[ (*lda)*j+i ].
imag=A[ LDA*i+j ].
imag;
158 for( i=0; i<*n; i++ )
159 for( j=0; j<*n; j++ ){
160 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
161 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
175 void F77_zhbmv(
int *layout,
char *uplow,
int *n,
int *k,
181 int i,irow,j,jcol,
LDA;
190 *incx, beta, y, *incy );
195 for( i=0; i<*k; i++ ){
198 for( j=jcol; j<*n; j++ ) {
199 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].
real;
200 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].
imag;
205 for( j=0; j<*n; j++ ) {
206 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
207 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
213 for( j=0; j<*n; j++ ) {
214 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
215 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
217 for( i=1; i<*k+1; i++ ){
220 for( j=jcol; j<(*n+*k); j++ ) {
221 A[ LDA*j+irow ].
real=a[ (*lda)*(j-jcol)+i ].real;
222 A[ LDA*j+irow ].
imag=a[ (*lda)*(j-jcol)+i ].imag;
258 for( j=0, k=0; j<*n; j++ )
259 for( i=0; i<j+1; i++, k++ ) {
263 for( i=0, k=0; i<*n; i++ )
264 for( j=i; j<*n; j++, k++ ) {
270 for( j=0, k=0; j<*n; j++ )
271 for( i=j; i<*n; i++, k++ ) {
275 for( i=0, k=0; i<*n; i++ )
276 for( j=0; j<i+1; j++, k++ ) {
295 void F77_ztbmv(
int *layout,
char *uplow,
char *transp,
char *diagn,
299 int irow, jcol, i, j,
LDA;
316 for( i=0; i<*k; i++ ){
319 for( j=jcol; j<*n; j++ ) {
320 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].
real;
321 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].
imag;
326 for( j=0; j<*n; j++ ) {
327 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
328 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
334 for( j=0; j<*n; j++ ) {
335 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
336 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
338 for( i=1; i<*k+1; i++ ){
341 for( j=jcol; j<(*n+*k); j++ ) {
342 A[ LDA*j+irow ].
real=a[ (*lda)*(j-jcol)+i ].real;
343 A[ LDA*j+irow ].
imag=a[ (*lda)*(j-jcol)+i ].imag;
358 void F77_ztbsv(
int *layout,
char *uplow,
char *transp,
char *diagn,
363 int irow, jcol, i, j,
LDA;
380 for( i=0; i<*k; i++ ){
383 for( j=jcol; j<*n; j++ ) {
384 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].
real;
385 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].
imag;
390 for( j=0; j<*n; j++ ) {
391 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
392 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
398 for( j=0; j<*n; j++ ) {
399 A[ LDA*j+irow ].
real=a[ (*lda)*j+i ].
real;
400 A[ LDA*j+irow ].
imag=a[ (*lda)*j+i ].
imag;
402 for( i=1; i<*k+1; i++ ){
405 for( j=jcol; j<(*n+*k); j++ ) {
406 A[ LDA*j+irow ].
real=a[ (*lda)*(j-jcol)+i ].real;
407 A[ LDA*j+irow ].
imag=a[ (*lda)*(j-jcol)+i ].imag;
422 void F77_ztpmv(
int *layout,
char *uplow,
char *transp,
char *diagn,
443 for( j=0, k=0; j<*n; j++ )
444 for( i=0; i<j+1; i++, k++ ) {
448 for( i=0, k=0; i<*n; i++ )
449 for( j=i; j<*n; j++, k++ ) {
455 for( j=0, k=0; j<*n; j++ )
456 for( i=j; i<*n; i++, k++ ) {
460 for( i=0, k=0; i<*n; i++ )
461 for( j=0; j<i+1; j++, k++ ) {
477 void F77_ztpsv(
int *layout,
char *uplow,
char *transp,
char *diagn,
498 for( j=0, k=0; j<*n; j++ )
499 for( i=0; i<j+1; i++, k++ ) {
503 for( i=0, k=0; i<*n; i++ )
504 for( j=i; j<*n; j++, k++ ) {
510 for( j=0, k=0; j<*n; j++ )
511 for( i=j; i<*n; i++, k++ ) {
515 for( i=0, k=0; i<*n; i++ )
516 for( j=0; j<i+1; j++, k++ ) {
532 void F77_ztrmv(
int *layout,
char *uplow,
char *transp,
char *diagn,
548 for( i=0; i<*n; i++ )
549 for( j=0; j<*n; j++ ) {
550 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
551 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
561 void F77_ztrsv(
int *layout,
char *uplow,
char *transp,
char *diagn,
577 for( i=0; i<*n; i++ )
578 for( j=0; j<*n; j++ ) {
579 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
580 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
591 void F77_zhpr(
int *layout,
char *uplow,
int *n,
double *alpha,
608 for( j=0, k=0; j<*n; j++ )
609 for( i=0; i<j+1; i++, k++ ){
613 for( i=0, k=0; i<*n; i++ )
614 for( j=i; j<*n; j++, k++ ){
620 for( j=0, k=0; j<*n; j++ )
621 for( i=j; i<*n; i++, k++ ){
625 for( i=0, k=0; i<*n; i++ )
626 for( j=0; j<i+1; j++, k++ ){
633 for( i=0, k=0; i<*n; i++ )
634 for( j=i; j<*n; j++, k++ ){
638 for( j=0, k=0; j<*n; j++ )
639 for( i=0; i<j+1; i++, k++ ){
645 for( i=0, k=0; i<*n; i++ )
646 for( j=0; j<i+1; j++, k++ ){
650 for( j=0, k=0; j<*n; j++ )
651 for( i=j; i<*n; i++, k++ ){
685 for( j=0, k=0; j<*n; j++ )
686 for( i=0; i<j+1; i++, k++ ) {
690 for( i=0, k=0; i<*n; i++ )
691 for( j=i; j<*n; j++, k++ ) {
697 for( j=0, k=0; j<*n; j++ )
698 for( i=j; i<*n; i++, k++ ) {
702 for( i=0, k=0; i<*n; i++ )
703 for( j=0; j<i+1; j++, k++ ) {
710 for( i=0, k=0; i<*n; i++ )
711 for( j=i; j<*n; j++, k++ ) {
715 for( j=0, k=0; j<*n; j++ )
716 for( i=0; i<j+1; i++, k++ ) {
722 for( i=0, k=0; i<*n; i++ )
723 for( j=0; j<i+1; j++, k++ ) {
727 for( j=0, k=0; j<*n; j++ )
728 for( i=j; i<*n; i++, k++ ) {
743 void F77_zher(
int *layout,
char *uplow,
int *n,
double *alpha,
755 for( i=0; i<*n; i++ )
756 for( j=0; j<*n; j++ ) {
757 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
758 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
762 for( i=0; i<*n; i++ )
763 for( j=0; j<*n; j++ ) {
764 a[ (*lda)*j+i ].
real=A[ LDA*i+j ].
real;
765 a[ (*lda)*j+i ].
imag=A[ LDA*i+j ].
imag;
789 for( i=0; i<*n; i++ )
790 for( j=0; j<*n; j++ ) {
791 A[ LDA*i+j ].
real=a[ (*lda)*j+i ].
real;
792 A[ LDA*i+j ].
imag=a[ (*lda)*j+i ].
imag;
796 for( i=0; i<*n; i++ )
797 for( j=0; j<*n; j++ ) {
798 a[ (*lda)*j+i ].
real=A[ LDA*i+j ].
real;
799 a[ (*lda)*j+i ].
imag=A[ LDA*i+j ].
imag;
void cblas_zher2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const void *alpha, const void *X, const int incX, const void *Y, const int incY, void *A, const int lda)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
void F77_ztrmv(int *layout, char *uplow, char *transp, char *diagn, int *n, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx)
void cblas_zgeru(CBLAS_LAYOUT layout, const int M, const int N, const void *alpha, const void *X, const int incX, const void *Y, const int incY, void *A, const int lda)
void cblas_zhemv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const void *alpha, const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY)
void cblas_zgerc(CBLAS_LAYOUT layout, const int M, const int N, const void *alpha, const void *X, const int incX, const void *Y, const int incY, void *A, const int lda)
void cblas_zgemv(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, const int M, const int N, const void *alpha, const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY)
void F77_zgbmv(int *layout, char *transp, int *m, int *n, int *kl, int *ku, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *y, int *incy)
void cblas_zhpr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const void *alpha, const void *X, const int incX, const void *Y, const int incY, void *Ap)
void cblas_ztpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const void *Ap, void *X, const int incX)
void cblas_zher(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const double alpha, const void *X, const int incX, void *A, const int lda)
void F77_ztbsv(int *layout, char *uplow, char *transp, char *diagn, int *n, int *k, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx)
void F77_ztpsv(int *layout, char *uplow, char *transp, char *diagn, int *n, CBLAS_TEST_ZOMPLEX *ap, CBLAS_TEST_ZOMPLEX *x, int *incx)
void F77_ztrsv(int *layout, char *uplow, char *transp, char *diagn, int *n, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx)
void cblas_ztrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const void *A, const int lda, void *X, const int incX)
void cblas_zhbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const int K, const void *alpha, const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY)
void F77_zgeru(int *layout, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *y, int *incy, CBLAS_TEST_ZOMPLEX *a, int *lda)
void F77_ztbmv(int *layout, char *uplow, char *transp, char *diagn, int *n, int *k, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx)
void F77_zhbmv(int *layout, char *uplow, int *n, int *k, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *y, int *incy)
void F77_zhpmv(int *layout, char *uplow, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *ap, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *y, int *incy)
void F77_zher(int *layout, char *uplow, int *n, double *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *a, int *lda)
void F77_zhpr2(int *layout, char *uplow, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *y, int *incy, CBLAS_TEST_ZOMPLEX *ap)
void F77_zgemv(int *layout, char *transp, int *m, int *n, const void *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, const void *x, int *incx, const void *beta, void *y, int *incy)
void cblas_zhpr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const double alpha, const void *X, const int incX, void *A)
void cblas_ztrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const void *A, const int lda, void *X, const int incX)
void get_diag_type(char *type, CBLAS_DIAG *diag)
void F77_ztpmv(int *layout, char *uplow, char *transp, char *diagn, int *n, CBLAS_TEST_ZOMPLEX *ap, CBLAS_TEST_ZOMPLEX *x, int *incx)
void cblas_zhpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const void *alpha, const void *Ap, const void *X, const int incX, const void *beta, void *Y, const int incY)
void cblas_ztbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const int K, const void *A, const int lda, void *X, const int incX)
void F77_zher2(int *layout, char *uplow, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *y, int *incy, CBLAS_TEST_ZOMPLEX *a, int *lda)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void cblas_ztpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const void *Ap, void *X, const int incX)
void F77_zhpr(int *layout, char *uplow, int *n, double *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *ap)
void cblas_ztbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const int K, const void *A, const int lda, void *X, const int incX)
void F77_zhemv(int *layout, char *uplow, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *a, int *lda, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *y, int *incy)
void F77_zgerc(int *layout, int *m, int *n, CBLAS_TEST_ZOMPLEX *alpha, CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *y, int *incy, CBLAS_TEST_ZOMPLEX *a, int *lda)
void cblas_zgbmv(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, const int M, const int N, const int KL, const int KU, const void *alpha, const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY)