Summary: | Permit NoChange in setZero, setOnes, setConstant, setRandom | ||||||
---|---|---|---|---|---|---|---|
Product: | Eigen | Reporter: | Rhys Ulerich <rhys.ulerich> | ||||
Component: | Core - general | Assignee: | Nobody <eigen.nobody> | ||||
Status: | CONFIRMED --- | ||||||
Severity: | enhancement | CC: | gael.guennebaud, jacob.benoit.1, pw_eigen | ||||
Priority: | Normal | Keywords: | JuniorJob | ||||
Version: | unspecified | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 814 | ||||||
Attachments: |
|
Description
Rhys Ulerich
2013-09-25 18:50:21 UTC
This should not be difficult to add, and a welcome addition for consistency. Patch welcome. In the meantime you can do: X.resize(NoChange, cols); X.setConstant(2); which is not much more verbose. Not critical, but good junior-job. So let's keep it for newcomers. Created attachment 666 [details] Patch for Bug 663 I've added support for NoChange in the functions mentioned above. Please have a look at it. Philipp -- 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/663. |