multiply matrix part by part