This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help with gsl_matrix_complex_row


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]