osdi_topology ¤
Configured OSDI topology, keeping native device buffers at their raw width.
Classes:
| Name | Description |
|---|---|
ReducedOsdiGroup | Raw-size evaluation with physical equation selection and compact COO stamps. |
Functions:
| Name | Description |
|---|---|
allocate_raw_indices | Allocate surviving internal representatives; zero is Circulax's ground slot. |
checked_residual | Finite-difference evaluation must also check the perturbed topology. |
configure_batch | Use final registration (temperature, analysis, settings) and instance params. |
gather | Insert literal zero for grounded and inactive raw slots. |
matrix_values | Select physical rows and non-ground columns in raw row-major order. |
physical_values | Drop equality and ground equations before summation. |
union_terminal_nets | Apply terminal shorts across every device before global allocation. |
ReducedOsdiGroup ¤
Bases: OsdiComponentGroup
Raw-size evaluation with physical equation selection and compact COO stamps.
Methods:
| Name | Description |
|---|---|
check_binding | Reject direct parameter swaps that leave a stale native snapshot. |
with_params | Configure new native parameters and reject topology changes explicitly. |
without_handle | Require full allocation for uncached, traced parameter evaluation. |
check_binding ¤
Reject direct parameter swaps that leave a stale native snapshot.
Source code in circulax/osdi_topology.py
with_params ¤
with_params(new_params: Array) -> ReducedOsdiGroup
Configure new native parameters and reject topology changes explicitly.
Source code in circulax/osdi_topology.py
allocate_raw_indices ¤
allocate_raw_indices(
items: list[dict], topology: Any, width: int, pins: int, size: int, port_map: dict
) -> tuple[ndarray, ndarray, ndarray, int]
Allocate surviving internal representatives; zero is Circulax's ground slot.
Source code in circulax/osdi_topology.py
checked_residual ¤
checked_residual(
group: OsdiComponentGroup, voltages: Array, params: Array
) -> tuple[Array, Array, Array]
Finite-difference evaluation must also check the perturbed topology.
Source code in circulax/osdi_topology.py
configure_batch ¤
configure_batch(
descriptor: OsdiModelDescriptor, items: list[dict], *, reduce: bool
) -> tuple[Array, Any, Any]
Use final registration (temperature, analysis, settings) and instance params.
Source code in circulax/osdi_topology.py
gather ¤
Insert literal zero for grounded and inactive raw slots.
Source code in circulax/osdi_topology.py
matrix_values ¤
Select physical rows and non-ground columns in raw row-major order.
Source code in circulax/osdi_topology.py
physical_values ¤
Drop equality and ground equations before summation.
Source code in circulax/osdi_topology.py
union_terminal_nets ¤
Apply terminal shorts across every device before global allocation.