[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] Multiple views on same matrix
From: |
Michael Braun |
Subject: |
[Help-gsl] Multiple views on same matrix |
Date: |
Tue, 22 Jan 2008 23:22:51 -0500 |
Hello, again. I apologize for two questions on the same day, but I think
this question might be more likely to help me debug my code than the last.
The question is, "are there any issues involved in having two submatrix
views on the same matrix?"
For example, is this a legal representation:
gsl_matrix * A = gsl_matrix_alloc(3,6);
gsl_matrix_view V1 = gsl_matrix_submatrix(A,0,0,2,6);
gsl_matrix_view V2 = gsl_matrix_submatrix(A,0,0,2,4); // the views overlap
gsl_matrix_memcpy(&V1.matrix,X); / X is a 2x6 matrix
And then, could I set, get and memcpy to &V1.matrix and &V2.matrix freely?
Or, once I create V2, does V1 disappear?
In the archives, there was a post on a similar topic from 2004, but
unfortunately, there were no responses.
Thanks again for your help.
Michael
Michael Braun
Assistant Professor of Marketing
MIT Sloan School of Management
One Amherst St., E40-169
Cambridge, MA 02142
(617) 253-3436
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-gsl] Multiple views on same matrix,
Michael Braun <=