Changes

Jump to: navigation, search

GPU610/DPS915 BLAS Documentation

698 bytes added, 15:57, 25 September 2012
no edit summary
'''''ldc'''''
:is the leading dimension of the array specified by c. The leading dimension must be greater than zero. If transb is specified as 'N' or 'n', the leading dimension must be greater than or equal to 0 and greater than or equal to the value specified in l.
 
==Understanding Strides==
 
The elements of a matrix (i.e a 2D array) are stored contiguously in memory. However, they may be stored in either column-major or row-major fashion. The stride represents the distance in memory between elements in adjacent rows (if row-major) or in adjacent columns (if column-major). This means that the stride is usually equal to the number of rows/columns in the matrix.
 
<pre>
Matrix A =
[1 2 3]
[4 5 6]
</pre>
Row-major stores values as {1,2,3,4,5,6}<br />
Stride here is 3
 
Col-major stores values as {1, 4, 2, 5, 3, 6}<br />
Stride here is 2
<pre>
Matrix B =
[1 2 3]
[4 5 6]
[7 8 9]
</pre>
Col-major storage is {1, 4, 7, 2, 5, 8, 3, 6, 9}<br />
Stride here is 3
1
edit

Navigation menu