MATLAB, 16 bytes
@(A,v,l)A*v==v*l
Rather trivial answer. Defines an anonymous function taking the inputs, and calculates element-wise equality of the resulting vectors. A single zero in a logical array makes an array falsey in MATLAB.
Sanchises
- 9.5k
- 1
- 37
- 63