ilatrans.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* ilatrans.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 _starpu_ilatrans_(char *trans)
  14. {
  15. /* System generated locals */
  16. integer ret_val;
  17. /* Local variables */
  18. extern logical _starpu_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 translates from a character string specifying a */
  27. /* transposition operation to the relevant BLAST-specified integer */
  28. /* constant. */
  29. /* ILATRANS returns an INTEGER. If ILATRANS < 0, then the input is not */
  30. /* a character indicating a transposition operator. Otherwise ILATRANS */
  31. /* returns the constant value corresponding to TRANS. */
  32. /* Arguments */
  33. /* ========= */
  34. /* TRANS (input) CHARACTER*1 */
  35. /* Specifies the form of the system of equations: */
  36. /* = 'N': No transpose */
  37. /* = 'T': Transpose */
  38. /* = 'C': Conjugate transpose */
  39. /* ===================================================================== */
  40. /* .. Parameters .. */
  41. /* .. */
  42. /* .. External Functions .. */
  43. /* .. */
  44. /* .. Executable Statements .. */
  45. if (_starpu_lsame_(trans, "N")) {
  46. ret_val = 111;
  47. } else if (_starpu_lsame_(trans, "T")) {
  48. ret_val = 112;
  49. } else if (_starpu_lsame_(trans, "C")) {
  50. ret_val = 113;
  51. } else {
  52. ret_val = -1;
  53. }
  54. return ret_val;
  55. /* End of ILATRANS */
  56. } /* _starpu_ilatrans_ */