extracted matrix arithmetic ops