Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ndarray
-
Labels:
-
Story Points:10
-
Epic Link:
-
Team:Alert Production
Description
Add ndarray::asEigenArray(array) and asEigenMatrix(array) which return Eigen::Map.
Also make it possible (or automatic) to eliminate ndarray::Array::asEigen and ndarray::EigenView when building against a more modern version of Eigen.
This is to help LSST upgrade Eigen, which will probably require eliminating our use of ndarray::EigenView.
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link |
|
Risk Score | 0 |
Story Points | 20 | 10 |
Component/s | afw [ 10714 ] | |
Component/s | meas_astrom [ 10745 ] | |
Component/s | ndarray [ 10761 ] |
Summary | Change ndarray asEigen to return Eigen::Map instead of ndarray::EigenView | Add asEigenArray/Matrix returning Eigen::Map |
Component/s | afw [ 10714 ] | |
Component/s | meas_astrom [ 10745 ] |
Description |
Change {{ndarray::Array::asEigen}} to return {{Eigen::Map}} instead of {{ndarray::EigenView}} and update the DM stack accordingly.
The primary concern is that {{EigenView}} manages its memory and {{Eigen::Map}} does not so we have to be careful not to introduce memory leaks. |
Add {{ndarray::Array::asEigenArray}} and {{asEigenMatrix}} which return {{Eigen::Map}}.
Also make it possible (or automatic) to eliminate {{ndarray::Array::asEigen}} and {{ndarray::EigenView}} when building against a more modern version of Eigen. This is to help LSST upgrade Eigen, which will probably require eliminating our use of {{ndarray::EigenView}}. |
Assignee | Russell Owen [ rowen ] | Jim Bosch [ jbosch ] |
Description |
Add {{ndarray::Array::asEigenArray}} and {{asEigenMatrix}} which return {{Eigen::Map}}.
Also make it possible (or automatic) to eliminate {{ndarray::Array::asEigen}} and {{ndarray::EigenView}} when building against a more modern version of Eigen. This is to help LSST upgrade Eigen, which will probably require eliminating our use of {{ndarray::EigenView}}. |
Add {{ndarray::asEigenArray(array)}} and {{asEigenMatrix(array)}} which return {{Eigen::Map}}.
Also make it possible (or automatic) to eliminate {{ndarray::Array::asEigen}} and {{ndarray::EigenView}} when building against a more modern version of Eigen. This is to help LSST upgrade Eigen, which will probably require eliminating our use of {{ndarray::EigenView}}. |
Assignee | Jim Bosch [ jbosch ] | Russell Owen [ rowen ] |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Reviewers | Jim Bosch [ jbosch ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Resolution | Done [ 10000 ] | |
Status | In Review [ 10004 ] | Done [ 10002 ] |