Electrically non-volatile/volatile programmable optical matrix | Synapse