Systolic array for universal matrix arithmetic