Skip to content
Discussion options

You must be logged in to vote

You mean as inplace operations? Mainly because matrices cannot change their dimension after creation. This is by design, but ultimately because even for sparse matrices all of these operations require to allocate and copy to new internal data structures (mostly arrays).

If you need to insert and remove rows or columns often, do you really need a full matrix or would a list of vectors maybe be more appropriate?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cdrnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #447 on July 24, 2021 07:38.