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.DFSAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntaxpublic static T[,] ReShape<T>(
T[] arr,
int xCount,
int yCount
)
Public Shared Function ReShape(Of T) (
arr As T(),
xCount As Integer,
yCount As Integer
) As T(,)
public:
generic<typename T>
static array<T,2>^ ReShape(
array<T>^ arr,
int xCount,
int yCount
)
static member ReShape :
arr : 'T[] *
xCount : int *
yCount : int -> 'T[,]
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