Blame thirdparty/superlu/SuperLU_4.1/CBLAS/dcabs1.c
|
kusano |
7d535a |
/* -- translated by f2c (version 19940927).
|
|
kusano |
7d535a |
You must link the resulting object file with the libraries:
|
|
kusano |
7d535a |
-lf2c -lm (in that order)
|
|
kusano |
7d535a |
*/
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#include "f2c.h"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
doublereal dcabs1_(doublecomplex *z)
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
/* >>Start of File<<
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
System generated locals */
|
|
kusano |
7d535a |
doublereal ret_val;
|
|
kusano |
7d535a |
static doublecomplex equiv_0[1];
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
/* Local variables */
|
|
kusano |
7d535a |
#define t ((doublereal *)equiv_0)
|
|
kusano |
7d535a |
#define zz (equiv_0)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
zz->r = z->r, zz->i = z->i;
|
|
kusano |
7d535a |
ret_val = abs(t[0]) + abs(t[1]);
|
|
kusano |
7d535a |
return ret_val;
|
|
kusano |
7d535a |
} /* dcabs1_ */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#undef zz
|
|
kusano |
7d535a |
#undef t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|