gsl_complex_float complex_float_math_fun(gsl_complex (*cf)(gsl_complex),
gsl_complex_float a)
{
  gsl_complex c;
  gsl_complex r;

  gsl_complex_float float_r;

  c.dat[0] = a.dat[0];
  c.dat[1] = a.dat[1];

  r = (*cf)(c);

  float_r.dat[0] = r.dat[0];
  float_r.dat[1] = r.dat[1];

  return r;
}

On 8 July 2010 21:27, Brian Gough <[email protected]> wrote:

> At Wed, 7 Jul 2010 17:34:21 -0700,
> Xuebin Wu wrote:
> > I didn't find them either. But if I were you, I would like to wrap the
> > function gsl_complex_add with the gsl_complex_float type..Simply convert
> the
> > datatype manually will do the trick.
> >
> > I think the gsl_complex_float type are for the compatibility with BLAS
> > routines..
>
> That is correct, the complex float types are only for BLAS/vectors.
>
>


-- 
---
yolar et elver.
---

DISCLAIMER

This transmission contains information that may be confidential. It is
intended for the named addressee only. Unless you are the named addressee
you may not copy or use it or disclose it to anyone else.
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to