Skip to main content

from_argmax

Function from_argmax 

Source
pub fn from_argmax(
    spec: &ArgMaxSpec,
    names: &StageNames,
    float: bool,
    target: &SpatialTarget,
) -> Result<Vec<SpatialProgram>, SpatialReject>
Expand description

t = argmax(X) + 1 — an ArgMax fold (first maximum, ties to the lowest index: the VM’s > scan) onto the integer datapath, then LOGOS’s 1-based count.