vsip_mview_f* vsip_mputrowlength_f(const vsip_mview_f *v, vsip_length len); vsip_cmview_f* vsip_cmputrowlength_f(const vsip_cmview_f *v, vsip_length len);
This function modifies the number of rows in an existing matrix view. It allows you to change the height of the matrix view while keeping all other attributes (column count, block, offset, and strides) the same.
const vsip_dmview_p* v: Pointer to the matrix view to be modified.
vsip_length len: The new number of rows for the matrix view.
Returns a pointer to the modified matrix view.
The new row length must be compatible with the matrix’s block and strides:
The product of (new row length - 1) and row stride must not exceed the block size minus the offset
Changing the row length affects how many elements are accessible in each column of the matrix view.
For column-major matrices, this operation is generally safe as long as the new length doesn’t exceed the block boundaries.
For row-major matrices or matrices with non-unit row strides, be cautious as changing the row length might make the view invalid if it extends beyond the block boundaries.