Click or drag to resize
DfsExtensionsReShapeT Method (T, Int32, Int32, Int32)
Reshape a 1D array to a 3D array of size [xCount , yCount, zCount]

The length of the arr must match (xCount X yCount X , zCount)

Namespace: DHI.Generic.MikeZero.DFS
Assembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
public static T[,,] ReShape<T>(
	T[] arr,
	int xCount,
	int yCount,
	int zCount
)

Parameters

arr
Type: T
xCount
Type: SystemInt32
yCount
Type: SystemInt32
zCount
Type: SystemInt32

Type Parameters

T

Return Value

Type: T
Remarks
It is assumed that the data in arr is in x order first, and y order next, i.e, arr[0] and arr[1] is at 3D index (0,0,0) and (1,0,0)
See Also