help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] gsl_vector stride


From: Brian Gough
Subject: Re: [Help-gsl] gsl_vector stride
Date: Mon, 7 Feb 2005 18:56:58 +0000

Henry Braun writes:
 > Is there any reason why the stride parameter in gsl_vector is
 > implemented as an (unsigned) size_t rather than as a signed
 > integer?

Hello,
It is to reduce implementation complexity.

 > 
 > I have some convolutions $C_j = \sum_{i = 0}^n x_i y_{j-i}$
 > to evaluate and the obviously slick technique would be to create
 > views of the $y$ vector with negative stride to pass to gsl_blas_ddot.

Just use cblas_ddot with -(y->stride) instead.

-- 
regards

Brian Gough

Network Theory Ltd,
Commercial support for GSL --- http://www.network-theory.co.uk/gsl/




reply via email to

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