SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
transpose

Functions

template<domain D, type T>
D T transpose (D T mat)
 

Detailed Description

Function for transposing matrices.

Note
D - all protection domains
T - any data type

Function Documentation

◆ transpose()

template<domain D, type T>
D T transpose ( D T  arr)
Parameters
mat- a 2-dimensional matrix
Returns
returns the transposed version of the input matrix
Leakage
None
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