Adelsbach/VSIPL
Core Light Programming Reference Guide
DD-00014-015
Core Light

5.6 vsip_dblockadmit_p - Admit block data

int vsip_blockadmit_f(vsip_block_f *b, vsip_scalar_bl s); 
int vsip_blockadmit_i(vsip_block_i *b, vsip_scalar_bl s); 
int vsip_cblockadmit_f(vsip_cblock_f*, vsip_scalar_bl s);
Description

These functions admit user data to the given block b. After calling this function, the user array may no longer be manually manipulated outside of VSIPL routines. The boolean flag s indicates whether the user data should be consistent with the block data. In most cases, s should be set to VSIP_TRUE.

Parameters
Return Value
Error Handling

If an error occurs, the function returns a non-zero value.

Example

vsip_block_f *float_block; 
vsip_scalar_bl consistent = VSIP_TRUE; 
int result; 
 
// Assuming float_block has been properly initialized 
result = vsip_blockadmit_f(float_block, consistent); 
 
if (result != 0) { 
    // Handle error 
}