[Haskell-cafe] Rotating matrices

Henning Thielemann lemming at henning-thielemann.de
Thu Jun 15 09:23:30 EDT 2006


On Thu, 15 Jun 2006, Thomas Sutton wrote:

> Today I've been looking at rotating matrices, i.e: taking a column-wise 
> matrix and making it row-wise and, in the process, swapping the dimensions 
> (thus a 3*2 matrix becomes a 2*3 matrix).

You mean 'matrix transposition' which is available as Data.List.transpose.


More information about the Haskell-Cafe mailing list