Re: [Help-gsl] Octave-like indexing with the GSL

2006-11-16 Thread Jordi Gutierrez Hermoso
On 16/11/06, Brian Gough <[EMAIL PROTECTED]> wrote: You will have to access the memory directly for that access pattern. The gsl_matrix type is designed so that it can always be passed to a BLAS function, which means that the rows of the matrix must have a "stride" of 1. Well, then I suppose th

Re: [Help-gsl] Octave-like indexing with the GSL

2006-11-16 Thread Brian Gough
Jordi Gutierrez Hermoso wrote: I was expecting to find just such a method as a matrix view with a clever little hack with the matrix's tda, but I cannot figure out how to do this. Should I just use a number of for-loops with row or column views, or use one of the gsl_matrix view functions for arr

Re: [Help-gsl] Octave-like indexing with the GSL

2006-11-11 Thread James Bergstra
On Sat, Nov 11, 2006 at 06:01:25PM -0500, Jordi Gutierrez Hermoso wrote: > Hello everyone. > > I'm writing some simple C++ wrappers for the GSL for personal use, and > I've already hit a bit of a stump at an early stage. I want to able to > index my wrapper class with Octave-like syntax. E.g. if A

[Help-gsl] Octave-like indexing with the GSL

2006-11-11 Thread Jordi Gutierrez Hermoso
Hello everyone. I'm writing some simple C++ wrappers for the GSL for personal use, and I've already hit a bit of a stump at an early stage. I want to able to index my wrapper class with Octave-like syntax. E.g. if A is a 4x4 matrix, then A(2,2,4, 2,2,4) (corresponding to Octave syntax A(2:2:4, 2: