I have a square matrix (nxn) and I know that its rank < n. I also know that one of its column can be expressed as linear combination of few other columns (< n-1). for e.g. if I have a 5x5 matrix then its column 2 can be expressed as combination of column 1 and column 3. I want to find a way to detect these linearly dependent columns. An answer on https://stackoverflow.com/a/24548118/8245075 does the exact job I want. However, I am programming in C and using lapack routines for linear algebra.
How to do this in lapack ?