Example A

A fictitious function that does nothing useful, but shows how a function plan can be used.

C/C++

sdp_FunctionExampleA *sdp_function_example_a_create_plan(int a, int b, float c, sdp_Error *status)

Creates processing function A.

Parameters:
  • a – Value of a.

  • b – Value of b.

  • c – Value of c.

  • status – Error status.

Returns:

sdp_FunctionExampleA* Handle to processing function.

void sdp_function_example_a_exec(sdp_FunctionExampleA *plan, sdp_Mem *output, sdp_Error *status)

Demonstrate a function utilising a plan.

Parameters:
  • plan – Handle to processing function.

  • output – Output buffer.

  • status – Error status.

void sdp_function_example_a_free_plan(sdp_FunctionExampleA *handle)

Releases handle to processing function A.

Parameters:

handle – Handle to processing function.

Python

class ska_sdp_func.examples.FunctionExampleA(par_a: int, par_b: int, par_c: float)

Processing function example A.

__init__(par_a: int, par_b: int, par_c: float) None

Creates processing function A.

Parameters:
  • par_a – Value of a

  • par_b – Value of b

  • par_c – Value of c

exec(output) None

Demonstrate a function utilising a plan.

Parameters:

output (numpy.ndarray) – Output buffer.