c - Clarification of the leading dimension in CUBLAS when transposing -


for matrix a, documentation states corresponding leading dimension parameter lda refers the:

leading dimension of two-dimensional array used store matrix a

thus presume number of rows of a given cublas' column major storage format. however, when consider op(a), leading dimension refer now?

nothing changes. leading dimension always refers length of first dimension of array. data order flags (normal, transpose, conjugate) indicate blas how data within array stored. have no effect on array itself, column major ordered , requires lda value indexing in 2d.

so whether matrix data stored in transposed form or not, m x n array has lda>=m.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -