Matrix multiplication extensions