Relative Content

Tag Archive for arraysjulia

Average neighbor cell values in 3D array

I have a 3D array that represents a lake basin, some of the 3D array is land (-999 values) and is not of interest. Within the lake, cells can contain either pelagic resource or littoral resources. These two resources grow at different rates and can be treated as independent, non-interacting parts of the lake.

check if a view is contiguous in julia

I have a N-dim julia array and a view of a slice. Is there a way to check if this view is contiguous (that would be a.flags["F"] in NumPy)? It seems Base.iscontiguous is not the answer.