Per-sample operation