Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

1.4.20 vsip_dmgetcolstride_p - Get Column Stride of a Matrix View

vsip_stride vsip_mgetcolstride_f(const vsip_mview_f *v); 
vsip_stride vsip_cmgetcolstride_f(const vsip_cmview_f *v);
Description

This function returns the column stride of a matrix view, which represents the number of elements to skip in memory when moving from one column to the next within a row.

Parameters
Return Value
Example

vsip_mview_f *matrix; 
vsip_stride col_stride; 
 
// Create a standard row-major matrix 
matrix = vsip_mcreate_f(100, 100, VSIP_ROW, VSIP_MEM_NONE); 
col_stride = vsip_mgetcolstride_f(matrix); 
printf("Standard matrix column stride: %ld\n", col_stride);  // Typically 1
Notes