fields.mixins.components.FieldComponentCoreMixin.broadcast_to_buffer_repr_in_axes#

FieldComponentCoreMixin.broadcast_to_buffer_repr_in_axes(axes: AxesInput, **kwargs) Any[source]#

Return the NumPy-compatible buffer representation broadcasted to specified axes.

This reshapes the representation returned by as_buffer_repr() to match the given axes, enabling safe elementwise operations or broadcasting.

Parameters:
  • axes (list of str) – Target axes to broadcast over.

  • **kwargs – Additional keyword arguments passed to np.broadcast_to.

Returns:

A NumPy-compatible array (e.g., np.ndarray, unyt_array) aligned with axes.

Return type:

Any