This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Deleted topic!

Tags: None
(comma "," separated)
Seb
Registered Member
Posts
99
Karma
0

Deleted topic!

Sat Oct 16, 2010 4:24 pm
Please save your time and do not read this. I just found out how to solve my problem....


Old title: How to append columns to DynamicSparseMatrix?

Hi,

is it possible to somehow resize the working space of a dynamic sparse matrix while filling it? My workflow is at follows:

  • Create empty dynamic matrix (n * 0) matrixA
  • Go through a container of data sets i=1,m
  • For each i, check if the dataset is active at all
  • if active, add a column to matrixA
  • if active, assemble data of the i-th data set into the last column of matrixA

resize() deletes the previous data of the matrix.
Saving the old content of the matrix temporarily (do a conservative resize) is too inefficient.

I am still using 2.0.15 :(

Thanks in advance.


EDIT:
I just found it: resizeAndKeepData. I just read the docs in more detail!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Deleted topic!

Sat Oct 16, 2010 4:33 pm
No need to delete it, maybe someone else has the same question? Just click on Image under the post with the solution (in this case your first post) to mark it as solved. :)


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient