coordax.shape_struct_field¶
- coordax.shape_struct_field(*axes: Coordinate) Field[source]¶
Returns a Field with
axesand a ShapeDtypeStruct in place of data.- Parameters:
*axes – The coordinates to use for the field.
- Returns:
A Field with
ShapeDtypeStructdata and the given axes.
Examples
>>> import coordax as cx >>> import jax >>> axis = cx.SizedAxis('x', 5) >>> cx.shape_struct_field(axis) <Field dims=('x',) shape=(5,) axes={'x': SizedAxis} >