cross

Fill in a module description here

source

make_cross

 make_cross (key:<function PRNGKey>, pop:chewc.population.Population,
             cross_plan:jax.Array, sp:chewc.sp.SimParam,
             next_id_start:int)

*(Public-facing) Creates progeny from a planned series of crosses.

This function handles the “CPU-side” logic: preparing data from the main Population object, calling the JIT-compiled core _make_cross_geno, and then assembling the results into a new Population object with updated metadata.

Args: key: A single JAX random key. pop: The parent population. cross_plan: A 2D array of shape (nCrosses, 2) with mother/father iids. sp: The simulation parameters. next_id_start: The starting integer for the new individuals’ public IDs.

Returns: A new Population object for the progeny.*