[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] matrix and matrix views
From: |
Joakim Hove |
Subject: |
[Help-gsl] matrix and matrix views |
Date: |
Thu, 26 Aug 2004 09:58:27 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
Hello,
I have a matrix m. In addition to the whole of m, I am also using a
submatrix m_part quite a lot. Currently this is implemented as
follows:
m = gsl_matrix_alloc(10,10);
m_part_view = gsl_matrix_submatrix(m,0,0,5,5);
m_part = &m_part_view.matrix;
Now, the *only* use of the matrix view I have is in the consctruction
above, i.e. simply to get access to the (utility ?) function
gsl_matrix_submatrix().
o Would it not be simpler to let gsl_matrix_submatrix return a
pointer to a matrix struct which only had shared memory?
o Can I let m_part_view go out of scope and continue to use m_part,
or will m_part then loose it's size/stride information?
Best Regards
Joakim
--
Joakim Hove
hove AT ift uib no
+47 (55 5)8 27 90
http://www.ift.uib.no/~hove/
- [Help-gsl] matrix and matrix views,
Joakim Hove <=