A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.arrayfire.org/docs/group__blas__func__transpose.htm below:

ArrayFire: transpose

Transpose a matrix. More...

Transpose a matrix.

Reverse or permute the dimensions of an array; returns the modified array. For an array a with two dimensions, transpose(a) gives the matrix transpose. For an array with more than two dimensions, the first two dimensions are transposed across higher dimensions.

Set conjugate=true to perform the complex conjugate transpose of a matrix which interchanges the row and column index for each element, reflecting the elements across the main diagonal and negating the imaginary part of any complex numbers. For example, if b = transpose(a, true) and element a(2, 1) is (1, 2), then element b(1, 2) is (1, -2).

In-place versions perform matrix transposition by reordering the input, reducing memory footprint.

Examples:

array a = iota(dim4(2, 3));

array b = transpose(a);

◆ af_transpose()

C Interface to transpose a matrix.

Parameters
[out] out transpose [in] in input array [in] conjugate if true, conjugate transposition is performed
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_transpose_inplace()

C Interface to transpose a matrix in-place.

Parameters
[in,out] in input array to be transposed in-place [in] conjugate if true, conjugate transposition is performed
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ transpose()

C++ Interface to transpose a matrix.

Parameters
[in] in input array [in] conjugate if true, conjugate transposition is performed
Returns
transpose
◆ transposeInPlace() AFAPI void transposeInPlace ( arrayin, const bool  conjugate = false  )

C++ Interface to transpose a matrix in-place.

Parameters
[in,out] in input array to be transposed in-place [in] conjugate if true, conjugate transposition is performed

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4