in reply to Convert matrix formats

Try PDL::LinearAlgebra::Real#tricpy, which is exactly for this.