Admin Production ni-theme
Current Publication

Transpose

LabWindows/CVI

Transpose

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

Purpose

Computes the transpose of a real 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 void * The input matrix to transpose. This matrix must be an array of doubles.
numberOfRows ssize_t Number of rows in the input matrix to transpose and the number of columns in the output matrix.
numberOfColumns ssize_t Number of columns in the input matrix to transpose and the number of rows in the output matrix.
Output
Name Type Description
outputMatrix void * The transpose matrix of inputMatrix, 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.

Additional Information

Library: Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the Transpose function:

  • analysis\2dfft.cws

    Open example
  • OpenMP\2dfft_omp.cws

    Open example