Hi, On Tuesday 21 July 2009 21:12:25 Thomas Schmitt wrote: > you're right, the calloc doesn't make sense!! But the line > GaussMatrix::p_matrix = &a.matrix; > should give me a pointer to the view i create.....but if i try to call > the pointer later in a function of the class(it just prints out the > matrix) > i get different values than the ones i initialized.
the calloc made more sense to me than this very strange thing you're doing with the gsl_matrix_view and the vector<double> in the class constructor. If you pass the same "init_vector" to the constructor of each class instance, all instances will share the same matrix data, so manipulations of one instance will also affect the others. But again, it's impossible to fully analyse your problem without the code. Cheers Frank _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
