-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added sparse concatenation functions #585
Conversation
I realized there's a cleaner way to do the sparse hcat (see last commit attached to the pull request). |
Nice. That is much cleaner. |
Ok I fixed some things:
The only drawback w.r.t. the previous version is that concatenation only works with matrices which have the same types (i.e. no more promotion). I'm still trying to find out a workaround for that. |
Can you add a couple of tests as well? |
Added sparse concatenation functions
I started writing tests but then I ran into a bug affecting the sparse ref. Here is an example instance:
BTW I solved the promotion issue, it's in the latest commit on the sparse_cat branch in my fork. I'll try to find the bug and then file another pull request with the (hopefully) working tests. |
I merged your stuff in, and added some very simple tests. I don't think that sparse ref has been tested at all. I think that with some focus we can get the sparse matrix stuff into good enough shape that it can be documented and people start using it. Unless you are fixing this right away, do open an issue so that we don't lose it. -viral On 15-Mar-2012, at 10:22 AM, Carlo Baldassi wrote:
|
I noticed that SparseMatrixCSC was lacking support for vcat and hcat and I added that.