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.
C Interface to transpose a matrix in-place.
C++ Interface to transpose a matrix.
false
)
C++ Interface to transpose a matrix in-place.
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