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

How to create a sparse vector from external arrays

Tags: None
(comma "," separated)
aschreyer
Registered Member
Posts
1
Karma
0
Hi all,

For sparse matrices there is the MappedSparseMatrix class to create matrices from external data - is there something similar for sparse vectors or can the MappedSparseMatrix class be used for this as well?

Cheers,

Adrian
Dee33
Registered Member
Posts
54
Karma
0
OS
You can view a sparse vector as a sparse matrix with only one row/column and then call MappedSparseMatrix.
However, I'm not sure if all operations on vectors will work.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]