Multiply matrix on device