Photonic matrix multiplication lights up photonic accelerator and beyond