Adelsbach/VSIPL
Core +DP Programming Reference Guide
DD-00017-015
Core +DP

1.4.26 vsip_dmdestroy_p - Destroy a Matrix View

vsip_block_f* vsip_mdestroy_f(vsip_mview_f *matrix); 
vsip_block_d* vsip_mdestroy_d(vsip_mview_d *matrix); 
vsip_cblock_f* vsip_cmdestroy_f(vsip_cmview_f *matrix); 
vsip_cblock_d* vsip_cmdestroy_d(vsip_cmview_d *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);