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.26 vsip_dmdestroy_p - Destroy a Matrix View

vsip_block_f* vsip_mdestroy_f(vsip_mview_f *matrix); 
vsip_cblock_f* vsip_cmdestroy_f(vsip_cmview_f *matrix);
Description

This function destroys a matrix view and returns its associated data block.

Parameters
Example

vsip_mview_f *matrix; 
 
// Create a matrix 
matrix = vsip_mcreate_f(100, 100, VSIP_ROW, VSIP_MEM_NONE); 
 
// Use the matrix... 
// ... 
 
// Destroy the matrix when no longer needed 
vsip_mdestroy_f(matrix);