ilauplo.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* ilauplo.f -- translated by f2c (version 20061008).
  2. You must link the resulting object file with libf2c:
  3. on Microsoft Windows system, link with libf2c.lib;
  4. on Linux or Unix systems, link with .../path/to/libf2c.a -lm
  5. or, if you install libf2c.a in a standard place, with -lf2c -lm
  6. -- in that order, at the end of the command line, as in
  7. cc *.o -lf2c -lm
  8. Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
  9. http://www.netlib.org/f2c/libf2c.zip
  10. */
  11. #include "f2c.h"
  12. #include "blaswrap.h"
  13. integer ilauplo_(char *uplo)
  14. {
  15. /* System generated locals */
  16. integer ret_val;
  17. /* Local variables */
  18. extern logical lsame_(char *, char *);
  19. /* -- LAPACK routine (version 3.2) -- */
  20. /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
  21. /* October 2008 */
  22. /* .. Scalar Arguments .. */
  23. /* .. */
  24. /* Purpose */
  25. /* ======= */
  26. /* This subroutine translated from a character string specifying a */
  27. /* upper- or lower-triangular matrix to the relevant BLAST-specified */
  28. /* integer constant. */
  29. /* ILAUPLO returns an INTEGER. If ILAUPLO < 0, then the input is not */
  30. /* a character indicating an upper- or lower-triangular matrix. */
  31. /* Otherwise ILAUPLO returns the constant value corresponding to UPLO. */
  32. /* Arguments */
  33. /* ========= */
  34. /* UPLO (input) CHARACTER */
  35. /* = 'U': A is upper triangular; */
  36. /* = 'L': A is lower triangular. */
  37. /* ===================================================================== */
  38. /* .. Parameters .. */
  39. /* .. */
  40. /* .. External Functions .. */
  41. /* .. */
  42. /* .. Executable Statements .. */
  43. if (lsame_(uplo, "U")) {
  44. ret_val = 121;
  45. } else if (lsame_(uplo, "L")) {
  46. ret_val = 122;
  47. } else {
  48. ret_val = -1;
  49. }
  50. return ret_val;
  51. /* End of ILAUPLO */
  52. } /* ilauplo_ */