LAPACK
3.10.1
LAPACK: Linear Algebra PACKage
◆
F77_dtrmv()
void F77_dtrmv
(
int *
layout
,
char *
uplow
,
char *
transp
,
char *
diagn
,
int *
n
,
double *
a
,
int *
lda
,
double *
x
,
int *
incx
)
Definition at line
63
of file
c_dblas2.c
.
64
{
65
double
*A;
66
int
i,j,
LDA
;
67
CBLAS_TRANSPOSE
trans;
68
CBLAS_UPLO
uplo;
69
CBLAS_DIAG
diag;
70
71
get_transpose_type
(transp,&trans);
72
get_uplo_type
(uplow,&uplo);
73
get_diag_type
(diagn,&diag);
74
75
if
(*layout ==
TEST_ROW_MJR
) {
76
LDA
= *n+1;
77
A = (
double
* )malloc( (*n)*
LDA
*
sizeof
( double ) );
78
for
( i=0; i<*n; i++ )
79
for
( j=0; j<*n; j++ )
80
A[
LDA
*i+j ]=a[ (*lda)*j+i ];
81
cblas_dtrmv
(
CblasRowMajor
, uplo, trans, diag, *n, A,
LDA
, x, *incx);
82
free(A);
83
}
84
else
if
(*layout ==
TEST_COL_MJR
)
85
cblas_dtrmv
(
CblasColMajor
, uplo, trans, diag, *n, a, *lda, x, *incx);
86
else
{
87
cblas_dtrmv
(
UNDEFINED
, uplo, trans, diag, *n, a, *lda, x, *incx);
88
}
89
}
CBLAS_UPLO
CBLAS_UPLO
Definition:
cblas.h:29
CBLAS_TRANSPOSE
CBLAS_TRANSPOSE
Definition:
cblas.h:28
CblasColMajor
@ CblasColMajor
Definition:
cblas.h:27
CblasRowMajor
@ CblasRowMajor
Definition:
cblas.h:27
CBLAS_DIAG
CBLAS_DIAG
Definition:
cblas.h:30
cblas_dtrmv
void cblas_dtrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const double *A, const CBLAS_INT lda, double *X, const CBLAS_INT incX)
Definition:
cblas_dtrmv.c:12
UNDEFINED
#define UNDEFINED
Definition:
cblas_test.h:19
get_diag_type
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition:
auxiliary.c:25
TEST_ROW_MJR
#define TEST_ROW_MJR
Definition:
cblas_test.h:12
TEST_COL_MJR
#define TEST_COL_MJR
Definition:
cblas_test.h:16
get_uplo_type
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition:
auxiliary.c:18
get_transpose_type
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition:
auxiliary.c:8
LDA
#define LDA
Definition:
example_user.c:12
Here is the call graph for this function:
Here is the caller graph for this function:
CBLAS
testing
c_dblas2.c
Generated on Tue Apr 12 2022 14:49:00 for LAPACK by
1.9.1