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.2.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 
}