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.DFSAssembly: 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
)
Public Shared Function ReShape(Of T) (
arr As T(),
xCount As Integer,
yCount As Integer,
zCount As Integer
) As T(,,)
public:
generic<typename T>
static array<T,3>^ ReShape(
array<T>^ arr,
int xCount,
int yCount,
int zCount
)
static member ReShape :
arr : 'T[] *
xCount : int *
yCount : int *
zCount : int -> 'T[,,]
Parameters
- arr
- Type: T
- xCount
- Type: SystemInt32
- yCount
- Type: SystemInt32
- zCount
- Type: SystemInt32
Type Parameters
- T
Return Value
Type:
TRemarks
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