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 5 3800
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
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?
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 trying to delete these lines from the
dataview like this:
for (int i=0; i < dataView.Count; i++)
if (dataGrid.IsSelected(i))
dataView.Delete(i);
|
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 a DataGrid), and I want to
be able to delete rows only if specific columns contain specific values.
For example, one of the columns contains boolean values; if the value for
|
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. If the user right clicks on a column
heading can I highlight that column and then delete it? I'm not exactly sure
how to highlight it or figure out what column has been clicked.
In my testing so far when I use the context menu I always get the...
|
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 specified in the following format too:
There is a DataView object that I want to prohibit deleting of some of its
DataRowView objects. that is: when drv.Delete() is called (drv is the
|
by: kilter |
last post by:
Anyone know of a routine that will return the number of rows and
columns in a matrix?
| |
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 include them in the set that is displayed to the user) but I don't
want to delete the corresponding row from the database.
I've tried using the .Rows.Remove() method but an exception is thrown to say
I don't have a 'delete' command in the data...
|
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 logic in place that, prior
to inserting any data, reads the first input record and checks to see if it
already exists in the table. If the record already exists there are two
options:
1) Don't continue, because you already ran this job today!
2)...
|
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 have to use these matrices in furthur calculations.How can I proceed for this problem? Here array defining should also be dynamic and I am also facing problem in giving array names.I am using TC++ compiler.
If anyone has a moment to help me think out...
|
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 textBoxes into the DataTable.
The gridView shows what values have already been entered into the DataTable.
<asp:GridView ID="DefinitionList" runat="server" Caption="Dictionary
entries" EmptyDataText="There are no definitions yet." AllowPaging="True"...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |