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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -