Table of Contents

Class ReshapeRoutines

Namespace
NeuralNetworks.Core
Assembly
NeuralNetworks.dll

Provides reshape routines for converting between 4D and 2D float arrays by flattening and restoring trailing dimensions.

public static class ReshapeRoutines
Inheritance
ReshapeRoutines
Inherited Members

Remarks

Preserves element order by mapping each 4D slice [dim1, dim2, dim3] to a contiguous 2D row segment and supports round-trip conversion when the 2D column count equals dim1 * dim2 * dim3.

Methods

ReshapeTo2D(float[,,,])

public static float[,] ReshapeTo2D(this float[,,,] data)

Parameters

data float[,,,]

Returns

float[,]

ReshapeTo4D(float[,], int, int, int)

public static float[,,,] ReshapeTo4D(this float[,] data, int dim1, int dim2, int dim3)

Parameters

data float[,]
dim1 int
dim2 int
dim3 int

Returns

float[,,,]