src.costs.abstract_shape_gradient

Module Contents

Classes

Abstract_shape_gradient

An Abstract_shape_gradient is the interface for any cost

class src.costs.abstract_shape_gradient.Abstract_shape_gradient

Bases: abc.ABC

An Abstract_shape_gradient is the interface for any cost

Parameters

S (for now only Surface_Fourier are supported) – a surface

abstract cost(self, S)
abstract shape_gradient(self, S, theta_pertubation)

The implementation of the shape gradient

Parameters
  • S (for now only Surface_Fourier are supported) – a surface

  • theta_pertubation (dictionary) – see get_theta_perturbation of a surface