PYTHON · NUMPY
Three states delete the multiply

A ternary matvec, built from selection instead of multiplication. `x @ W` appears exactly once — as the trusted reference you must match to floating-point precision. Your job is the `out =` line: reproduce that reference using only np.where selection, addition, and subtraction. If a single `*` touches the data, you've missed the point.

You read

the arrays and values already in scope

You change

the code you write in each cell

Fixed

the dataset and the checks that grade you