SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
transpose

Functions

template<domain D, type T>
D T transpose (D T[[2]] mat)
 
template<domain D, type T>
D T transpose (D T[[3]] arr)
 

Detailed Description

Function for transposing matrices.

Note
D - all protection domains
T - any data type

Function Documentation

◆ transpose() [1/2]

D T transpose ( D T[[2]]  mat)
Parameters
mat- a 2-dimensional matrix
Returns
returns the transposed version of the input matrix
Leakage
None

◆ transpose() [2/2]

D T transpose ( D T[[3]]  arr)
Parameters
arr- a 3-dimensional array
Note
Transposes across the last two dimensions
Returns
returns a 2-dimensional array transposed across the last two dimension
Leakage
None