in reply to Convert matrix formats

You might be looking for the PDL modules, in particular the 2D matrix manipulation modules.