Skip to content

Implement component sharing (share_comps) in AMICATorchNG #60

Closed

Description

@neuromechanist

Last unimplemented Fortran feature. In amica15.f90, comp_list can share components across models via the share_comps reassignment on the share_start/share_int schedule (plus load_comp_list, comp_used). In AMICATorchNG, comp_list is only the trivial per-model block layout (comp_list[:, h] = arange(h*n, (h+1)*n)); the reassignment is absent. NumPy has partial plumbing (params.json share_comps/share_start/share_int, load_comp_list) but not the dynamic reassignment either.

Tasks

  • Read the share_comps path in amica15.f90 (comp_used bookkeeping, reassignment cadence, comp_thresh).
  • Port share_comps reassignment + load_comp_list init to AMICATorchNG.
  • Reconcile the NumPy plumbing so both backends agree.
  • Validate on real sample data vs Fortran (partition/component agreement); guard no-op for n_models=1 so single-model Verify NG init-basin vs Newton bit-parity via Fortran load_* init-matching #24 parity stays bit-exact.

Priority

Low per .context/feature_parity.md (share_comps is niche), but it is the only remaining feature-parity gap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions