tidy3d.plugins.autograd.utilities.make_kernel

Contents

tidy3d.plugins.autograd.utilities.make_kernel#

class make_kernel[source]#

Bases:

Create a kernel based on the specified type in n dimensions.

Parameters:
  • kernel_type (KernelType) โ€“ The type of kernel to create (โ€˜circularโ€™ or โ€˜conicโ€™).

  • size (Iterable[int]) โ€“ The size of the kernel in pixels for each dimension.

  • normalize (bool = True) โ€“ Whether to normalize the kernel so that it sums to 1.

Returns:

An n-dimensional array representing the specified type of kernel.

Return type:

NDArray

Inherited Common Usage