As a first step, the user should always carefully read the leading comments of the LAPACK routine. The leading comments give a detailed description of all input/output arguments and can be viewed in the source code, on the LAPACK webpage, or in this users' guide.
For the benefit of less experienced programmers, we list the most common programming errors in calling an LAPACK routine. These errors may cause the LAPACK routine to report a failure, as described in Section 7.3; they may cause an error to be reported by the system; or they may lead to wrong results -- see also Section 7.4.
Some modern compilation systems, as well as software tools such as the portability checker in Toolpack [88], can check that arguments agree in number and type; and many compilation systems offer run-time detection of errors such as an array element out-of-bounds or use of an unassigned variable.