vsip_offset vsip_mgetoffset_f(const vsip_mview_f *v); vsip_offset vsip_cmgetoffset_f(const vsip_cmview_f *v);
This function returns the offset of a matrix view within its associated data block. The offset represents the number of elements from the start of the block to the first element (0,0) of the matrix view.
const vsip_dmview_p* v: Pointer to the matrix view.
Returns the offset in elements from the start of the block to the first element of the matrix view.
For matrices created with vsip_mcreate_f, the offset is typically 0.
The offset, combined with the strides, completely defines where the matrix view is located within its block.