help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Wrong result in vector from gsl_vector_alloc_col_from_mat


From: Peter Johansson
Subject: Re: [Help-gsl] Wrong result in vector from gsl_vector_alloc_col_from_matrix
Date: Wed, 14 Nov 2012 16:16:01 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121026 Thunderbird/10.0.10

On 11/14/2012 03:41 AM, Stephan Petzchen wrote:
Hi,

I am working on the 1.15 version of GSL and get a wrong result in vector v
from gsl_vector_alloc_col_from_matrix.  (matrix/gsl_vector_double.h,
matrix/getset_source.c)

My understanding is that it should return the matrix column data for a
specified column. So, with gsl_vector_alloc_row_from_matrix, here the
specified row will be returned.

Example:

Matrix:
1 1 1 1 1 1 1
2 2 2 2 2 2 2
3 3 3 3 3 3 3
4 4 4 4 4 4 4

Expected result for column offset 4 with vector size 4 (specified by no. of
matrix rows): 1 2 3 4
x x x x 1 x x
x x x x 2 x x
x x x x 3 x x
x x x x 4 x x

Actual result:
x x x x 1 1 1
2 x x x x x x
x x x x x x x
x x x x x x x

I can not reproduce this. It would help if you please could post your code, output, and expected output.

Cheers,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]