Skip to content

transpose_matrix_modTransposeMatrixModTransposeMatrixModtranspose_matrix_modT_transpose_matrix_modđź”—

Short descriptionđź”—

transpose_matrix_modTransposeMatrixModTransposeMatrixModtranspose_matrix_modT_transpose_matrix_mod — Transpose a matrix.

Signatuređź”—

transpose_matrix_mod( matrix MatrixID )void TransposeMatrixMod( const HTuple& MatrixID )static void HOperatorSet.TransposeMatrixMod( HTuple matrixID )def transpose_matrix_mod( matrix_id: HHandle ) -> None

Herror T_transpose_matrix_mod( const Htuple MatrixID )

void HMatrix::TransposeMatrixMod( ) const

void HMatrix.TransposeMatrixMod( )

Descriptionđź”—

The operator transpose_matrix_modTransposeMatrixMod returns the transpose of the input Matrix. The input matrix is defined by the matrix handle MatrixIDmatrixIDmatrix_id. The input matrix is overwritten with the result. Access to the elements of the matrix is possible e.g., with the operator get_full_matrixGetFullMatrix.

Example:

\[\begin{eqnarray*} \texttt{Matrix} = \left[ \begin{array}{rrr} 3.0 & 1.0 & -2.0 \\ -5.0 & 7.0 & 2.0 \\ -9.0 & -4.0 & 1.0 \end{array} \right] \qquad \to \qquad \texttt{Matrix} = \left[ \begin{array}{rrr} 3.0 & -5.0 & -9.0 \\ 1.0 & 7.0 & -4.0 \\ -2.0 & 2.0 & 1.0 \end{array} \right] \end{eqnarray*}\]

Execution informationđź”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parametersđź”—

MatrixIDmatrixIDmatrix_id (input_control, state is modified) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)

Matrix handle of the input matrix.

Resultđź”—

If the parameters are valid, the operator transpose_matrix_modTransposeMatrixMod returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Combinations with other operatorsđź”—

Combinations

Possible predecessors

create_matrixCreateMatrix

Possible successors

get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix

Alternatives

transpose_matrixTransposeMatrix

See also

invert_matrixInvertMatrix, invert_matrix_modInvertMatrixMod

Referencesđź”—

David Poole: “Linear Algebra: A Modern Introduction”; Thomson; Belmont; 2006.

Gene H. Golub, Charles F. van Loan: “Matrix Computations”; The Johns Hopkins University Press; Baltimore and London; 1996.

Moduleđź”—

Foundation