[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Help-gsl] vector views

**From**: |
Gideon Simpson |

**Subject**: |
[Help-gsl] vector views |

**Date**: |
Sun, 6 May 2012 21:57:04 -0500 |

Just wondering if someone can help me out with using vector views. I have a
set of N complex numbers which I am storing in a 2*N size gsl_vector. I am
using this because I am looking for the solution of a nonlinear system, and, to
the best of my knowledge, the multidimensional root finding algorithms only
take functions with gsl_vector arguments.
So here's my question, does anyone have any tips on how to set up vector views
so that I have pointers available that logically map to the real and imaginary
portions of the vector? I.e., I want
gsl_vector * z // Size 2*N
gsl_vector * a // Size N, a= Re z
gsl_vector * b// Size N, b= Im z
Thanks,
-gideon

**[Help-gsl] vector views**,
*Gideon Simpson* **<=**