|  | 
| template<domain D, type T> | 
| D T | transpose (D T[[2]] mat) | 
|  | 
| template<domain D, type T> | 
| D T | transpose (D T[[3]] arr) | 
|  | 
Function for transposing matrices. 
- Note
- D - all protection domains 
- 
T - any data type 
◆ 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