chore: sync project state and current artifacts

This commit is contained in:
Sepehr
2026-02-22 23:27:31 +01:00
parent 1b6415776e
commit dd77089b22
232 changed files with 37056 additions and 4296 deletions

View File

@@ -510,14 +510,14 @@ mod tests {
fn test_populate_state_2_edges() {
use crate::system::System;
use entropyk_components::{
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, SystemState,
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, StateSlice,
};
struct MockComp;
impl Component for MockComp {
fn compute_residuals(
&self,
_s: &SystemState,
_s: &StateSlice,
r: &mut ResidualVector,
) -> Result<(), ComponentError> {
for v in r.iter_mut() {
@@ -527,7 +527,7 @@ mod tests {
}
fn jacobian_entries(
&self,
_s: &SystemState,
_s: &StateSlice,
j: &mut JacobianBuilder,
) -> Result<(), ComponentError> {
j.add_entry(0, 0, 1.0);
@@ -570,16 +570,17 @@ mod tests {
/// AC: #4 — populate_state uses P_cond for circuit 1 edges in multi-circuit system.
#[test]
fn test_populate_state_multi_circuit() {
use crate::system::{CircuitId, System};
use crate::system::System;
use entropyk_components::{
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, SystemState,
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, StateSlice,
};
use entropyk_core::CircuitId;
struct MockComp;
impl Component for MockComp {
fn compute_residuals(
&self,
_s: &SystemState,
_s: &StateSlice,
r: &mut ResidualVector,
) -> Result<(), ComponentError> {
for v in r.iter_mut() {
@@ -589,7 +590,7 @@ mod tests {
}
fn jacobian_entries(
&self,
_s: &SystemState,
_s: &StateSlice,
j: &mut JacobianBuilder,
) -> Result<(), ComponentError> {
j.add_entry(0, 0, 1.0);
@@ -646,14 +647,14 @@ mod tests {
fn test_populate_state_length_mismatch() {
use crate::system::System;
use entropyk_components::{
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, SystemState,
Component, ComponentError, ConnectedPort, JacobianBuilder, ResidualVector, StateSlice,
};
struct MockComp;
impl Component for MockComp {
fn compute_residuals(
&self,
_s: &SystemState,
_s: &StateSlice,
r: &mut ResidualVector,
) -> Result<(), ComponentError> {
for v in r.iter_mut() {
@@ -663,7 +664,7 @@ mod tests {
}
fn jacobian_entries(
&self,
_s: &SystemState,
_s: &StateSlice,
j: &mut JacobianBuilder,
) -> Result<(), ComponentError> {
j.add_entry(0, 0, 1.0);