magni.cs.reconstruction.sl0._L_update module

Module providing functions for calculating the updated value of L (the number of gradient descent iterations for each sigma) used in the Smoothed l0 algorithms.

Routine listings

calculate_using_fixed(var)
Calculate the updated, fixed L value.
calculate_using_geometric(var)
Calculate an updated L value in a ‘geometric’ way.
get_function_handle(method)
Return a function handle to a given calculation method.
magni.cs.reconstruction.sl0._L_update.wrap_calculate_using_fixed(var)[source]

Arguments wrapper for calculate_using_fixed.

magni.cs.reconstruction.sl0._L_update.wrap_calculate_using_geometric(var)[source]

Arguments wrapper for calculate_using_geometric.

magni.cs.reconstruction.sl0._L_update.get_function_handle(method, var)[source]

Return a function handle to a given calculation method.

Parameters:
  • method (str) – Identifier of the calculation method to return a handle to.
  • var (dict) – Local variables needed in the L update method.
Returns:

f_handle (function) – Handle to the calculation method defined in this globals scope.