pub fn from_softcap(
spec: &SoftcapSpec,
names: &StageNames,
shape: (usize, usize),
target: &SpatialTarget,
) -> Result<SpatialProgram, SpatialReject>Expand description
y = C·tanh(x/C) — each element soft-capped (capped’s form: one exponential and one reciprocal).