Replies: 3 comments 5 replies
-
It's probably a good idea to switch to this. Want to submit a PR? I remember (perhaps many Eigens ago) that |
Beta Was this translation helpful? Give feedback.
2 replies
-
If input and output are the same w.r.t. RowMajor/ColMajor, then it should
be straight-forward to write as repeated loops over the input inserting
directly along rows/columns.
When they're different it's a bit annoying and maybe at that point it's
worth bailing into setfromtriplets.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, I take it back. Even in the case they're different it should be
fine. It's just a matter of sprinkling `if RowMajor` in all the right
places.
In any case, this is a performance optimization that we could do after
accepting a PR that at least worked _correctly_ in all cases.
… |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently wanted to use the repmat function for sparse matrices and encountered that the function is very slow. Additionally, the function does not work for row-major format.
I came up with a faster implementation which also supports row-major type, so maybe you want to integrate that one into the project :)
Beta Was this translation helpful? Give feedback.
All reactions