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

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);