Tensor to matrix🔗

Converts a tensor to a matrix. This tool is a special case of reshape tensor that always produces a two-dimensional matrix.

Inputs🔗

  • tensor: The input tensor.

  • shape: The shape of the output matrix. A 1-by-2 matrix, where the first column tells the number of rows and the second one the number of columns in the output matrix. If either value is non-positive (<= 0), that dimension will be automatically calculated so that all elements of the input tensor can be fit into the matrix.

@in - outputType - Type of the output matrix.

Outputs🔗

  • matrix: The output matrix

enum OutputType🔗

Type of the output matrix.

Values:

enumerator Integer🔗
enumerator Float🔗
enumerator Double🔗
enumerator Boolean🔗
enumerator FloatComplex🔗
enumerator DoubleComplex🔗