Matrix transposition

From Fōrmulæ wiki
Jump to: navigation, search

This page is the answer to the task Matrix transposition in the Rosetta Code.

Description (from Rosetta Code)

Transpose an arbitrarily sized rectangular Matrix.

Answer

Matrix transposition is an intrsinec operation in Fōrmulæ, through the Math.Matrix.Transpose expression.

MatrixTranspositionExample.png

Coding

However, a matrix transposition can be coded:

MatrixTranspositionCode.png

Using the previous example:

MatrixTranspositionOutput.png