473,503 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

deleting rows or columns in GSL matrices

A
I am wondering if there's an efficient way of deleting rows or columns
of a gsl_matrix? The only way I can think of is copying individual
elements or may be rows, columns or sumatrices to a new matrix, then
free the original matrix and have the pointer of the original matrix
point towards the new matrix.

Any suggestions for making this better? How does MATLAB do similar
things in it's mwArray datatype?

Thanks,
A

May 24 '06 #1
5 3783
A wrote:
I am wondering if there's an efficient way of deleting rows or columns
of a gsl_matrix?
What on earth is a gsl_matrix, and why do you imagine we know about it?
The only way I can think of is copying individual
elements or may be rows, columns or sumatrices to a new matrix, then
free the original matrix and have the pointer of the original matrix
point towards the new matrix.

Any suggestions for making this better?
Do you have a question about C++, or some code you'd like us to take a
look at?
How does MATLAB do similar things in it's mwArray datatype?


That's odd, I'm sure I had a copy of the MATLAB source code sitting
right here just a minute ago, right next to my hours of spare time to
answer off-topic questions. Where could they have gone?

Please read:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Luke

May 24 '06 #2
A
gsl_matrix is the data type of GNU Scientific Library. Since a lot of
people in the scientific community that programs in C++ use GSL, I
didn't mention in clearly. Does anyone out here know about GSL matrices
and can answer my query posted above?

May 24 '06 #3
A wrote:
I am wondering if there's an efficient way of deleting rows or columns
of a gsl_matrix? The only way I can think of is copying individual
elements or may be rows, columns or sumatrices to a new matrix, then
free the original matrix and have the pointer of the original matrix
point towards the new matrix.
Probably you are right as the following GSL documentation states no
implemented function for your task:

http://www.gnu.org/software/gsl/manu....html#Matrices
Any suggestions for making this better?


Ask here:

http://www.gnu.org/software/gsl/#mailinglists

HTH,

thomas

May 24 '06 #4
A wrote:
gsl_matrix is the data type of GNU Scientific Library. Since a lot of
people in the scientific community that programs in C++ use GSL, I
didn't mention in clearly. Does anyone out here know about GSL matrices
and can answer my query posted above?


Please learn how to quote properly on Usenet.

Please read the FAQ for this newsgroup (I provided the link earlier:
parashift.com/c++-faq-lite) to learn why your query is not on-topic
here.

I'm sure you can find an appropriate GNU newsgroup in which to ask.
This one is for the C++ language itself, not support for particular
libraries (even GNU ones).

Luke

May 24 '06 #5
A
Thanks. That helped.
hbar wrote:
A wrote:
I am wondering if there's an efficient way of deleting rows or columns
of a gsl_matrix? The only way I can think of is copying individual
elements or may be rows, columns or sumatrices to a new matrix, then
free the original matrix and have the pointer of the original matrix
point towards the new matrix.


Probably you are right as the following GSL documentation states no
implemented function for your task:

http://www.gnu.org/software/gsl/manu....html#Matrices
Any suggestions for making this better?


Ask here:

http://www.gnu.org/software/gsl/#mailinglists

HTH,

thomas


May 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14714
by: Mojtaba Faridzad | last post by:
Hi, with SetDataBinding( ) a DataGrid shows a DataView. user can select some rows in the grid by holding cotrol key. when user clicks on Delete button, I should delete all selected rows. I am...
1
1762
by: Derrick | last post by:
Hello; Sorry for being a little off topic. I've posted to the ADO.NET group as well :) Dealing with Winforms on 1.1 framework, VS.NET 2003. I have a DataView (which is the Data Source for...
10
2320
by: Nick | last post by:
Hello, Please pardon my ignorance as I'm sure this is easy to do. I have a datagrid where I want to let the user delete columns. I added a context menu to the datagrid that has a delete option....
9
1704
by: Hamed | last post by:
Hello I have a DataGrid that a is bound to a DataTable. Some of the rows in the DataTable should not be deleted. How can I prohibit deleting of some identified rows? The problem could be...
6
3958
by: kilter | last post by:
Anyone know of a routine that will return the number of rows and columns in a matrix?
7
6585
by: Susan Mackay | last post by:
I have a data table that is connected to a database table with a data adapter in the 'standard' manner. However I want to be able to remove selected rows from the data table (i.e. no longer...
24
21509
by: Frank Swarbrick | last post by:
We have a batch process that inserts large numbers (100,000 - 1,000,000) of records into a database each day. (DL/I database.) We're considering converting it to a DB2 table. Currently we have...
2
1277
by: debiasri | last post by:
I have to devide a matrix in variable no of matrices with each having variable no of rows. Like I have to devide a matrix with dim.9X19 into say 4 matrices with row nos 1,6,6,6 respectively, and I...
0
2365
by: Andy B | last post by:
I have the following gridview. There are 2 other textBoxes and a button on the page as well. When somebody puts text into the 2 textBoxes and presses the add button, it puts the values of those...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.