DGEMM: Can 'K' be smaller than actual matrix dimensions?

Post here if you have a question about LAPACK or ScaLAPACK algorithm or data format

DGEMM: Can 'K' be smaller than actual matrix dimensions?

Postby zinphi03 » Sun Aug 09, 2015 11:43 am

Hi,
I'ld like to ask if it's permitted to use a smaller 'K' value to multiply just the first 'K' columns/rows of matrix A/B together? I couldn't figure out the answer from the documentation of the dgemm.f file on netlib...

For example: A1[20,13], A2[20,16], C[13,16] {A1*[13,10], A2*[10,16], with the same content as in the first 10 rows of A1/A2}

dgemm('T','N',10,1,A1,20,A2,20,1,C,13)
should equal to
dgemm('T','N',10,1,A1*,10,A2*,10,1,C,13)
is that correct?

Thanks for help!
zinphi03
 
Posts: 1
Joined: Sun Aug 09, 2015 11:24 am

Return to Algorithm / Data

Who is online

Users browsing this forum: No registered users and 2 guests