General spatial photonic Ising machine based on the interaction matrix eigendecomposition method | Synapse