Before you guys scold me, I have tried to do this in the past and I've searched on google for awhile but I just can't seem to get LAPACK to work for me. I don't have any code at the moment but in the past I tried and it failed horribly. I think it was because I wasn't prototyping my functions and I had trouble finding the correct information and a working example.
Can someone help me out and show me or link me to some decent LAPACK code?