Skip to main content

amf_order_full

Function amf_order_full 

Source
pub fn amf_order_full(
    pattern: &CscPattern<'_>,
    opts: &AmfOptions,
) -> Result<(Vec<i32>, OrderingStats, AmfStats), OrderingError>
Expand description

Contract-conforming ordering producer.

Signature matches the shape every FERAL ordering crate must expose per dev/plans/ordering-crate-contract.md: input is a full-symmetric CscPattern and options; output is a three-tuple of (perm, OrderingStats, crate-stats), with errors in OrderingError.

OrderingStats.time_us is the wall-clock time of this call. fill_estimate and flop_estimate are left as None for AMF — the per-crate AmfStats carries ndiv / nms_lu / nms_ldl flop counters that may be surfaced here in a future revision without bumping the contract.