Summary: | SparseMatrix class does not enforce the EIGEN_NO_MALLOC macro | ||
---|---|---|---|
Product: | Eigen | Reporter: | velin <n.clauvelin+bugzilla> |
Component: | Sparse | Assignee: | Nobody <eigen.nobody> |
Status: | DECISIONNEEDED --- | ||
Severity: | Internal Design | CC: | chtz, gael.guennebaud, n.clauvelin+bugzilla |
Priority: | Normal | ||
Version: | 3.2 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
velin
2016-03-29 19:23:06 UTC
In the sparse world, almost any operations will perform dynamic allocation, so I don't see much use case to extend this debugging mechanism to sparse matrices. Recall that EIGEN_NO_MALLOC does not change the behavior of Eigen: it only helps in debugging code. I don't see anything wrong with having EIGEN_NO_MALLOC also affect sparse operations. There are several operations which do not alloc, e.g., matrix*vector products or inserting values into a properly pre-allocated matrix. Maybe a small nitpicking thing against it is that sparse matrices use new/delete instead of (aligned_)malloc/(aligned_)free (so the naming of the macro does not fit). -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1185. |