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

1.4.22 vsip_dmgetrowstride_p - Get Row Stride of a Matrix View

vsip_stride vsip_mgetrowstride_f(const vsip_mview_f *v); 
vsip_stride vsip_cmgetrowstride_f(const vsip_cmview_f *v);
Description

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

Parameters
Return Value
Example

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