Transpose

AnalysisLibErrType Transpose (void *inputMatrix, int numberOfRows, int numberOfColumns, void *outputMatrix);

Purpose

Finds the transpose of a 2D input matrix. Transpose obtains the (i, j)th element of the resulting matrix using the following formula:

yi, j = xj, i

Parameters

Input
Name Type Description
inputMatrix numeric array Input matrix to transpose. This matrix must be an array of doubles.
numberOfRows integer Number of rows in the input matrix to transpose and the number of columns in the output matrix.
numberOfColumns integer Number of columns in the input matrix to transpose and the number of rows in the output matrix.
Output
Name Type Description
outputMatrix numeric array Transpose matrix, as an array of doubles.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.