Changes

Jump to: navigation, search

GPU610/DPS915 BLAS Documentation

1,099 bytes added, 00:02, 4 October 2015
corrected type in title
__TOC__
=BLAS Documentation=
 
Note: This information applies to the '''gsl_cblas''' library
There are 2 main functions to use
Example Page @ [https://scs.senecac.on.ca/~gpu610/pages/content/lines.html GPU/DPS915 Course Site] ==segmvsgemv==
* compute the matrix-vector product for a general matrix
'''''lda'''''
:is the leading dimension of the array specified by a. The leading dimension must be greater than zero. The leading dimension must be greater than or equal to 1 and greater than or equal to the value specified in m. See the 'Understanding Strides' section below for more information.
'''''x'''''
:is the stride for vector y. It must not be zero.
==segmmsgemm==
* perform combined matrix multiplication and addition for general matrices
'''''lda'''''
:is the leading dimension of the array specified by a. The leading dimension must be greater than zero. If transa is specified as 'N' or 'n', the leading dimension must be greater than or equal to 1. If transa is specified as 'T' or 't', the leading dimension must be greater than or equal to the value specified in m. See the 'Understanding Strides' section below for more information.
'''''B'''''
'''''ldb'''''
:is the leading dimension of the array specified by b. 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 the value specified in m. If transa is specified as 'T' or 't', the leading dimension must be greater than or equal to the value specified in n. See the 'Understanding Strides' section below for more information.
'''''beta'''''
'''''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.See the 'Understanding Strides' section below for more information. ==Understanding Strides (lda, ldb, ldc)== 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 
https[http://scswww.senecacphysicsforums.on.ca/~gpu610/pages/contentcom/linesshowthread.htmlphp?t=543110 Source]

Navigation menu