Added Lapack in linalg.h and a fixed a minor #elif.

lapack is using cblas_ddot and its defined with arguments other then 2 vectors so how can we pass only vectors?