Why 0 * X is faster than X * 0?

后端 未结 0 956
感情败类
感情败类 2021-01-12 05:23

I timed 0 * X, X * 0, X * Y matrix products with matlab with very big arrays. Why only 0 * X is 10x than other ones that are equal in speed? Is this true with other language

相关标签:
回答
  • 消灭零回复
提交回复
热议问题