fields.mixins.components.FieldComponentCoreMixin.zeros_like#

classmethod FieldComponentCoreMixin.zeros_like(other: Type[_SupFCCore], *args, **kwargs) _SupFCCore[source]#

Create a zero-filled component with the same grid, axes, and element shape as another.

Parameters:
  • other (FieldComponent) – The reference component whose layout is used.

  • *args – Forwarded to the zeros() constructor.

  • **kwargs – Forwarded to the zeros() constructor.

Returns:

A new component with the same layout as other and zero-initialized data.

Return type:

FieldComponent