--- Begin Message ---
- From: Matyka Maciej <maq at panoramix dot ift dot uni dot wroc dot pl>
- To: jungman at lanl dot gov
- Date: Thu, 4 Mar 2004 15:48:18 +0000 (WET)
- Subject: No Subject
Hi,
I've found little bug in a documentation for GSL library (in a matrix
first code example):
Example programs for matrices
The program below shows how to allocate, initialize and read from a matrix
using the functions gsl_matrix_alloc, gsl_matrix_set and gsl_matrix_get.
First you alloc 10x3 matrix:
for (i = 0; i < 10; i++)
for (j = 0; j < 3; j++)
gsl_matrix_set (m, i, j, 0.23 + 100*i + j);
Then you're trying to show 100x3 matrix:
for (i = 0; i < 100; i++)
for (j = 0; j < 3; j++)
printf ("m(%d,%d) = %g\n", i, j,
gsl_matrix_get (m, i, j));
It's little bug, but anyway maybe you're interested to remove it.
Thank you for GSL.
Best Regards,
--
Maciej Matyka
http://panoramix.ift.uni.wroc.pl/~maq
--- End Message ---