Matrix Transpose. More...

Functions

AFAPI array transpose (const array &in, const bool conjugate=false)
 Transposes a matrix. More...
 
AFAPI void transposeInPlace (array &in, const bool conjugate=false)
 Transposes a matrix in-place. More...
 
AFAPI af_err af_transpose (af_array *out, af_array in, const bool conjugate)
 Transposes a matrix. More...
 
AFAPI af_err af_transpose_inplace (af_array in, const bool conjugate)
 Transposes a matrix in-place. More...
 

Detailed Description

Matrix Transpose.

Transposes a matrix


Function Documentation

◆ af_transpose()

AFAPI af_err af_transpose ( af_array out,
af_array  in,
const bool  conjugate 
)

Transposes a matrix.

This funciton will tranpose the matrix in.

Parameters
[out]outThe transposed matrix
[in]inInput matrix which will be transposed
[in]conjugatePerform a congugate transposition
Returns
AF_SUCCESS if the process is successful.

◆ af_transpose_inplace()

AFAPI af_err af_transpose_inplace ( af_array  in,
const bool  conjugate 
)

Transposes a matrix in-place.

Transposes a matrix


Parameters
[in,out]inis the matrix to be transposed in place
[in]conjugateIf true a congugate transposition is performed

◆ transpose()

AFAPI array af::transpose ( const array in,
const bool  conjugate = false 
)

Transposes a matrix.

Transposes a matrix


Parameters
[in]inInput Matrix
[in]conjugateIf true a congugate transposition is performed
Returns
Transposed matrix
Examples:
benchmarks/cg.cpp, graphics/gravity_sim.cpp, and machine_learning/deep_belief_net.cpp.

◆ transposeInPlace()

AFAPI void af::transposeInPlace ( array in,
const bool  conjugate = false 
)

Transposes a matrix in-place.

Transposes a matrix


Parameters
[in,out]inis the matrix to be transposed in place
[in]conjugateIf true a congugate transposition is performed