JuliaLang/julia — pull request #612 by carlobaldassi (2012-03-19 18:20:24+00:00)
Title: [bugfix] Fixing large matrices transpose

Large matrices (>50000 elements) transpose is still broken.
This reverts commit 6cd4d366faf6d0dc71004b6edc0a3df32cae35a9 and fixes the issue. Maybe it's not elegant, but it works. Also, I have added some tests in test/arrayops.jl.

before the fix:

```
julia> a = rand(200, 300);

julia> all(a' == permute(a, (2, 1)))
false
```

after the fix:

```
julia> all(a' == permute(a, (2, 1)))
true
```