Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
subroutine dgemm ( character TRANSA,
character TRANSB,
integer M,
integer N,
integer K,
double precision ALPHA,
double precision, dimension(lda,*) A,
integer LDA,
double precision, dimension(ldb,*) B,
integer LDB,
double precision BETA,
double precision, dimension(ldc,*) C,
integer LDC
)


Though I followed this format, I keep getting an error in this command.

What I have tried:

I tried out doing matrix multiplication in C CBLAS header file using cblas_dgemm();


C = alpha*( A )*( B ) + beta*C is the operation that it does , where alpha, beta = scalars.
A, B and C are matrices .
I took A as a 1x10 matrix and B as a 1x181 matrix. So my C=(A**T)*B.
cblas_dgemm(CblasColMajor, CblasTrans,
CblasNoTrans, M, N, K, alpha, A, lda, B, ldb, beta, C, ldc);
//M=10,K=1,N=181,lda=1, ldb=1, ldc=10, alpha=1, beta=0


The site I used is
[^]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900