Isn't double[][] equivalent to **double?

前端 未结 9 1489
心在旅途
心在旅途 2020-12-29 02:37

I\'m asking this because my program have two functions to multiply matrices, they multiply only 4x4 and 4x1 matrices. The headers are:

 double** mult4x1(doub         


        
9条回答
  •  误落风尘
    2020-12-29 03:08

    There is no type [][]. What you have is in fact m2 which is an array of arrays of size 4 of type double and m1 which is an array of arrays of size 1. An array of arrays of size 4 is not equivalent to double pointer.

提交回复
热议问题