Skip to content

Swap columns function

The function dggsvd3 from LAPACK returns column matrices in the wrong order. However, it returns the necessary information to reorder the data in one pass.

We need a function called swap, in bob::math::linear that swaps the columns in a blitz array.