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

5.8 vsip_cblockfind_p - Get user data (complex)

void vsip_cblockfind_f(const vsip_cblock_f *p, vsip_scalar_f **rr, vsip_scalar_f **ri);
Description

This function queries the user data array(s) of the given complex block p. Depending on the data format, the function sets the pointers rr and ri accordingly:

The block must have been bound previously and must be in the released state before calling this function.

Parameters
Error Handling

On error, both rr and ri are set to NULL.

Example

vsip_cblock_f *block; 
vsip_scalar_f *real_part; 
vsip_scalar_f *imag_part; 
 
// Assuming block has been properly initialized, bound, and released 
vsip_cblockfind_f(block, &real_part, &imag_part); 
 
if (real_part == NULL) { 
    // Handle error 
}