This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: help with gsl_matrix_complex_row
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Mario Pernici <Mario dot Pernici at mi dot infn dot it>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Mon, 19 May 2003 10:42:26 +0100
- Subject: Re: help with gsl_matrix_complex_row
- References: <Pine.LNX.4.44.0305152328150.16448-100000@ptt.mi.infn.it>
Mario Pernici writes:
> I cannot find what I do wrong using gsl_matrix_complex_row.
> The following example gives garbage in the second row.
> The corresponding example with gsl_matrix_row and doubles works correctly.
> Help would be appreciated.
>
> Output:
> row0(0) = 1, 1.1
> row1(0) = -3.00652e-182, 7.7651e-62
> row0(1) = 1.2, 1.3
> row1(1) = -1.31435e+64, 3.39464e+184
What platform and compiler?
It works for me (gcc 2.95.4 on x86, Debian 3.0).
bjg|debian> ./a.out
row0(0) = 1, 1.1
row1(0) = 1.4, 1.5
row0(1) = 1.2, 1.3
row1(1) = 1.6, 1.7
--
Brian