Click or drag to resize

DfsExtensionsReShapeT Method (T, Int32, Int32)

Reshape a 1D array to a 2D array of size [xCount , yCount]

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

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

Parameters

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

Type Parameters

T

Return Value

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