Switched matrix accelerator