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

Posted:

**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!

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!