Getting reference of a sub-matrix in java

后端 未结 4 1526
悲&欢浪女
悲&欢浪女 2020-12-18 17:26

I need to do parallel processing of sub-matrices recursively (original matrix divided into 4 passed into a method). The matrix is stored as a 2D array. I can\'t copy the ele

4条回答
  •  心在旅途
    2020-12-18 17:59

    You already got an answer from Lagerbaer in the question that you reference. You just pass the array (which is a reference to the array in fact), and 4 extra parameters, which are the minimum and maximum x and y coordinates in the original array.

提交回复
热议问题