fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 193: Transpose a two-dimensional matrix
Idiom # 193: Transpose a two-dimensional matrix
See
programming-idioms.org
:
Code
b := a.transpose
What are effects?
Running Example
ex193 is a := num.matrix (array2 2 3 i,j->i+10*j) b := a.transpose say "{a}ᵀ = {b}"
What are effects?
last changed: 2024-07-01
next: Idiom # 194: Circular shift of a two-dimensional array