Proper matrix multiplication