Vectors vs. Matrices

Hi !

I would like to know the differences between cublasSetVector and cublasSetMatrix, knowing that matrices are stored (and sent to gpu) in vector format (column major)…
Using both seems to yield the same result… does it ?

Thank you very much in advance,

Nicolas

When copying entire matrices (i.e. contiguous storage) you can
use both cublasSetVector or cublasSetMatrix.
You cannot copy to an arbitrary sub-matrix with cublasSetVector since the storage locations of a true sub-matrix are only piece-wise contiguous.

ok, thank you very much for the explanation ! :)