pub struct SolverAuditEntry {
pub request_id: String,
pub algorithm: Algorithm,
pub input_hash: [u8; 8],
pub output_hash: [u8; 8],
pub iterations: usize,
pub wall_time_us: u64,
pub converged: bool,
pub residual: f64,
pub timestamp_ns: u128,
pub matrix_rows: usize,
pub matrix_nnz: usize,
}Expand description
A single audit trail record for one solver invocation.
Captures a deterministic fingerprint of the problem (input hash), the solution (output hash), performance counters, and a monotonic timestamp.
§Serialization
Derives Serialize / Deserialize so entries can be persisted as JSON,
MessagePack, or any serde-compatible format.
Fields§
§request_id: StringUnique identifier for this solve request.
algorithm: AlgorithmAlgorithm that produced the result.
input_hash: [u8; 8]8-byte hash of the input (matrix + rhs). Produced by
hash_input.
output_hash: [u8; 8]8-byte hash of the output solution vector. Produced by
hash_output.
iterations: usizeNumber of iterations the solver executed.
wall_time_us: u64Wall-clock time in microseconds.
converged: boolWhether the solver converged within tolerance.
residual: f64Final residual L2 norm.
timestamp_ns: u128Timestamp as nanoseconds since the Unix epoch.
matrix_rows: usizeNumber of rows in the input matrix.
matrix_nnz: usizeNumber of non-zero entries in the input matrix.
Trait Implementations§
Source§impl Clone for SolverAuditEntry
impl Clone for SolverAuditEntry
Source§fn clone(&self) -> SolverAuditEntry
fn clone(&self) -> SolverAuditEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more