tidy3d.plugins.autograd.invdes.make_filter_and_project#
- class make_filter_and_project[source]#
Bases:
Create a function that filters and projects an array.
This is the standard filter-and-project scheme used in topology optimization.
- Parameters:
filter_size (Tuple[int, ...]) โ The size of the filter kernel in pixels.
beta (float, optional) โ The beta parameter for the tanh projection, by default 1.0.
eta (float, optional) โ The eta parameter for the tanh projection, by default 0.5.
filter_type (KernelType, optional) โ The type of filter kernel to use, by default โconicโ.
padding (PaddingType, optional) โ The padding type to use for the filter, by default โreflectโ.
- Returns:
A function that takes an array and applies the filter and projection.
- Return type:
function
Inherited Common Usage