Fix a compiler warning
Oops, missed some files
Add a transpose function